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

Function TEST_CASE

test/validate.cpp:31–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include <rob.hpp>
30
31TEST_CASE(simple_test)
32{
33 migraphx::program p;
34 auto* mm = p.get_main_module();
35 auto one = mm->add_literal(1);
36 auto two = mm->add_literal(2);
37 mm->add_instruction(migraphx::make_op("add"), one, two);
38 EXPECT(mm->validate() == mm->end());
39 auto result = p.eval({});
40 EXPECT(result.back() == migraphx::literal{3});
41 EXPECT(result.back() != migraphx::literal{4});
42}
43
44TEST_CASE(out_of_order)
45{

Callers

nothing calls this directly

Calls 12

get_main_moduleMethod · 0.80
backMethod · 0.80
move_instructionMethod · 0.80
clear_argumentsMethod · 0.80
make_opFunction · 0.50
add_literalMethod · 0.45
add_instructionMethod · 0.45
validateMethod · 0.45
endMethod · 0.45
evalMethod · 0.45
clearMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected