MCPcopy Create free account
hub / github.com/Samsung/UTopia / TEST

Function TEST

tests/targetanalysis/TestTargetLib.cpp:8–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace ftg {
7
8TEST(TestTargetLib, toJsonP) {
9 auto ExpectedJson = util::strToJson(R"(
10 {
11 "APIs": [
12 "API"
13 ]
14 })");
15
16 TargetLib TLib({"API"});
17 std::vector<EnumConst> Enumerators;
18 Enumerators.emplace_back("A", 0);
19 ASSERT_EQ(TLib.toJson(), ExpectedJson);
20}
21
22TEST(TestTargetLib, fromJsonP) {
23 auto TargetLibJson = util::strToJson(R"(

Callers

nothing calls this directly

Calls 8

strToJsonFunction · 0.85
getAPIsMethod · 0.80
sizeMethod · 0.80
endMethod · 0.80
ValueClass · 0.50
toJsonMethod · 0.45
fromJsonMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected