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

Function TEST_P

test/text_to_binary.mode_setting_test.cpp:58–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 spvtest::TextToBinaryTestBase<TestWithParam<MemoryModelCase>>;
57
58TEST_P(OpMemoryModelTest, AnyMemoryModelCase) {
59 const std::string input = "OpMemoryModel " + GetParam().addressing_name +
60 " " + GetParam().memory_name;
61 EXPECT_THAT(CompiledInstructions(input),
62 Eq(MakeInstruction(spv::Op::OpMemoryModel,
63 {GetParam().get_addressing_value(),
64 GetParam().get_memory_value()})));
65}
66
67#define CASE(ADDRESSING, MEMORY) \
68 { \

Callers

nothing calls this directly

Calls 9

MakeInstructionFunction · 0.85
MakeVectorFunction · 0.85
get_addressing_valueMethod · 0.80
get_memory_valueMethod · 0.80
get_execution_valueMethod · 0.80
operandsMethod · 0.80
nameMethod · 0.45
strMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected