| 25 | #include <test.hpp> |
| 26 | |
| 27 | TEST_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 | |
| 38 | TEST_CASE(test_int_name) |
| 39 | { |
nothing calls this directly
no test coverage detected