MCPcopy Create free account
hub / github.com/Kitware/CMake / TEST

Function TEST

Utilities/cmcppdap/src/typeinfo_test.cpp:47–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45} // namespace dap
46
47TEST(TypeInfo, Derived) {
48 dap::DerivedStruct in;
49 in.s = "hello world";
50 in.b = true;
51 in.i = 42;
52 in.n = 3.14;
53
54 dap::json::Serializer s;
55 ASSERT_TRUE(s.serialize(in));
56
57 dap::DerivedStruct out;
58 dap::json::Deserializer d(s.dump());
59 ASSERT_TRUE(d.deserialize(&out)) << "Failed to deserialize\n" << s.dump();
60
61 ASSERT_EQ(out.s, "hello world");
62 ASSERT_EQ(out.b, true);
63 ASSERT_EQ(out.i, 42);
64 ASSERT_EQ(out.n, 3.14);
65}

Callers

nothing calls this directly

Calls 3

serializeMethod · 0.45
dumpMethod · 0.45
deserializeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…