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

Function TEST_P

test/text_to_binary_test.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47using GoodMaskParseTest = ::testing::TestWithParam<MaskCase>;
48
49TEST_P(GoodMaskParseTest, GoodMaskExpressions) {
50 spv_context context = spvContextCreate(SPV_ENV_UNIVERSAL_1_0);
51
52 uint32_t value;
53 EXPECT_EQ(SPV_SUCCESS,
54 AssemblyGrammar(context).parseMaskOperand(
55 GetParam().which_enum, GetParam().expression, &value));
56 EXPECT_EQ(GetParam().expected_value, value);
57
58 spvContextDestroy(context);
59}
60
61INSTANTIATE_TEST_SUITE_P(
62 ParseMask, GoodMaskParseTest,

Callers

nothing calls this directly

Calls 6

spvContextCreateFunction · 0.85
AssemblyGrammarClass · 0.85
spvContextDestroyFunction · 0.85
ConcatenateFunction · 0.85
MakeInstructionFunction · 0.85
parseMaskOperandMethod · 0.80

Tested by

no test coverage detected