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

Function TEST_CASE

test/param_utils.cpp:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include <test.hpp>
29
30TEST_CASE(test_param_name)
31{
32 CHECK(migraphx::param_name(0) == "x0");
33 CHECK(migraphx::param_name(1) == "x1");
34 CHECK(migraphx::param_name(10) == "x:00010");
35 CHECK(migraphx::param_name(11) == "x:00011");
36 CHECK(migraphx::param_name(100) == "x:00100");
37 CHECK(migraphx::param_name(101) == "x:00101");
38 CHECK(migraphx::param_name(10011) == "x:10011");
39 CHECK(migraphx::param_name(99999) == "x:99999");
40 CHECK(test::throws([] { migraphx::param_name(100000); }));
41 CHECK(test::throws([] { migraphx::param_name(100001); }));
42}
43
44TEST_CASE(test_param_name_sorted)
45{

Callers

nothing calls this directly

Calls 8

param_nameFunction · 0.85
is_sortedFunction · 0.70
transformFunction · 0.50
rangeFunction · 0.50
sortFunction · 0.50
reverseFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected