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

Function TEST_CASE

test/argument_test.cpp:44–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44TEST_CASE(copy_eq)
45{
46 auto a1 = as_argument(3);
47 auto a2 = as_argument(3);
48 auto a3 = as_argument(1);
49 auto a4 = a1; // NOLINT
50
51 EXPECT(a1 == a2);
52 EXPECT(a2 != a3);
53 EXPECT(a1 == a4);
54 EXPECT(a4 != a3);
55
56 EXPECT(a1.get_sub_objects().empty());
57 EXPECT(a2.get_sub_objects().empty());
58 EXPECT(a3.get_sub_objects().empty());
59 EXPECT(a4.get_sub_objects().empty());
60}
61
62TEST_CASE(default_construct)
63{

Callers

nothing calls this directly

Calls 15

as_argumentFunction · 0.85
visit_allFunction · 0.85
fallback_visitMethod · 0.80
lensMethod · 0.80
atMethod · 0.80
get_argumentMethod · 0.80
make_tupleFunction · 0.70
to_valueFunction · 0.50
emptyMethod · 0.45
get_sub_objectsMethod · 0.45
to_stringMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected