MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / TEST_CASE

Function TEST_CASE

test/serialize_test.cpp:83–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81};
82
83TEST_CASE(serialize_reflectable_type)
84{
85 reflectable_type t1{{1, 2},
86 "hello",
87 1.0,
88 {},
89 reflectable_type::simple1,
90 reflectable_type::class_enum::class2,
91 {{1}, {2}},
92 {5, {4}, "hello"},
93 {migraphx::nullopt}};
94 migraphx::value v1 = migraphx::to_value(t1);
95 reflectable_type t2 = migraphx::from_value<reflectable_type>(v1);
96 migraphx::value v2 = migraphx::to_value(t2);
97 migraphx::value v3 = migraphx::to_value(reflectable_type{});
98
99 EXPECT(v1 == v2);
100 EXPECT(v1 != v3);
101 EXPECT(v2 != v3);
102}
103
104TEST_CASE(serialize_empty_array)
105{

Callers

nothing calls this directly

Calls 13

from_valueFunction · 0.85
iotaFunction · 0.85
is_arrayMethod · 0.80
frontMethod · 0.80
is_objectMethod · 0.80
atMethod · 0.80
is_nullMethod · 0.80
to_valueFunction · 0.50
emptyMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected