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

Function TEST_CASE

test/any_ptr.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include <test.hpp>
26
27TEST_CASE(test_int_id)
28{
29 int i = 1;
30 migraphx::any_ptr p = &i;
31 EXPECT(p.get<int*>() == &i);
32 EXPECT(p.get(migraphx::get_type_name(i)) == &i);
33 EXPECT(p.unsafe_get() == &i);
34 EXPECT(test::throws([&] { p.get<float*>(); }));
35 EXPECT(test::throws([&] { p.get(migraphx::get_type_name(&i)); }));
36}
37
38TEST_CASE(test_int_name)
39{

Callers

nothing calls this directly

Calls 2

unsafe_getMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected