MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / TEST

Function TEST

lib/mdflib/mdflib_test/src/testcccomment.cpp:15–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace mdf::test {
14
15TEST(TestCcComment, Properties) {
16 CcComment comment;
17
18 constexpr std::string_view kTx = "CC Test Properties";
19 comment.Comment(MdString(kTx));
20
21 const std::string xml_snippet = comment.ToXml();
22 std::cout << xml_snippet << std::endl;
23
24 CcComment comment1;
25 comment1.FromXml(xml_snippet);
26 EXPECT_EQ(comment1.Comment(), kTx);
27}
28
29TEST(TestCcComment, CompuMethod) {
30 CcComment comment;

Callers

nothing calls this directly

Calls 15

MdStringClass · 0.85
LowerLimitMethod · 0.80
UpperLimitMethod · 0.80
ValidityMethod · 0.80
AddPhysicalConstraintMethod · 0.80
AddInternalConstraintMethod · 0.80
ConstFloatValueMethod · 0.80
ConstTextValueMethod · 0.80
AddNumeratorMethod · 0.80
AddDenominatorMethod · 0.80
GenericMathMethod · 0.80
AddCompuScaleMethod · 0.80

Tested by

no test coverage detected