MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / TEST_F

Function TEST_F

test/text_to_binary.barrier_test.cpp:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35using OpMemoryBarrier = spvtest::TextToBinaryTest;
36
37TEST_F(OpMemoryBarrier, Good) {
38 const std::string input = "OpMemoryBarrier %1 %2\n";
39 EXPECT_THAT(CompiledInstructions(input),
40 Eq(MakeInstruction(spv::Op::OpMemoryBarrier, {1, 2})));
41 EXPECT_THAT(EncodeAndDecodeSuccessfully(input), Eq(input));
42}
43
44TEST_F(OpMemoryBarrier, BadMissingScopeId) {
45 const std::string input = "OpMemoryBarrier\n";

Callers

nothing calls this directly

Calls 2

MakeInstructionFunction · 0.85
spvOpcodeMakeFunction · 0.85

Tested by

no test coverage detected