void TestRepository::registerTest(const TypeInfo& typeInfo, const std::shared_ptr< ILatencyTest >& testInstance)
    {
        LatencyTestInfo info{ typeInfo.name(), testInstance };

        m_latencyTestInfosByName.insert(std::make_pair(boost::algorithm::to_lower_copy(typeInfo.fullyQualifiedName()), info));
        m_latencyTestInfosByName.insert(std::make_pair(boost::algorithm::to_lower_copy(typeInfo.name()), info));
    }
Exemple #2
0
 wayward::ErrorPtr make_type_error_for_mismatching_record_type(const IType* expected_type, const TypeInfo& got_type) {
   return make_error<TypeError>(wayward::format("Cannot access property of object of type '{0}'. This property belongs to objects of type '{1}'.", got_type.name(), expected_type->name()));
 }
Exemple #3
0
 wayward::ErrorPtr make_type_error_for_mismatching_value_type(const IType* record_type, const IType* expected_type, const TypeInfo& got_type) {
   return make_error<TypeError>(wayward::format("Cannot assign property of type '{0}' with value of type '{1}'.", expected_type->name(), got_type.name()));
 }