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

Function TEST_CASE

test/process_test.cpp:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88TEST_CASE(string_stdin)
89{
90 auto tmp = migraphx::tmp_dir{};
91 auto out = (tmp.path / "output.txt").string();
92
93 migraphx::process{executable, {"--stdin", out}}.write(
94 [&](const auto& writer) { writer(string_data.data(), string_data.size()); });
95
96 EXPECT(migraphx::fs::is_regular_file(out));
97
98 std::string result{migraphx::read_string(out)};
99 EXPECT(result == string_data);
100
101 EXPECT(migraphx::fs::remove(out));
102}
103
104TEST_CASE(binary_stdin)
105{

Callers

nothing calls this directly

Calls 10

read_stringFunction · 0.85
generateFunction · 0.85
read_bufferFunction · 0.85
reverseFunction · 0.50
writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected