MCPcopy Create free account
hub / github.com/apache/fory / build_simple_struct

Function build_simple_struct

cpp/fory/serialization/xlang_test_main.cc:1529–1541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1527}
1528
1529SimpleStruct build_simple_struct() {
1530 SimpleStruct obj;
1531 obj.f1 = {{1, 1.0}, {2, 2.0}};
1532 obj.f2 = 39;
1533 obj.f3 = Item{std::string("item")};
1534 obj.f4 = std::string("f4");
1535 obj.f5 = Color::White;
1536 obj.f6 = {std::string("f6")};
1537 obj.f7 = 40;
1538 obj.f8 = 41;
1539 obj.last = 42;
1540 return obj;
1541}
1542
1543void run_test_simple_struct(const std::string &data_file) {
1544 auto bytes = read_file(data_file);

Callers 2

run_test_simple_structFunction · 0.85

Calls 1

stringFunction · 0.50

Tested by

no test coverage detected