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

Function TEST_P

test/opcode_require_capabilities_test.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 ::testing::TestWithParam<ExpectedOpCodeCapabilities>;
32
33TEST_P(OpcodeTableCapabilitiesTest, TableEntryMatchesExpectedCapabilities) {
34 const spvtools::InstructionDesc* desc = nullptr;
35 ASSERT_EQ(SPV_SUCCESS, spvtools::LookupOpcode(GetParam().opcode, &desc));
36 auto caps = desc->capabilities();
37 EXPECT_EQ(ElementsIn(GetParam().capabilities),
38 ElementsIn(CapabilitySet(static_cast<uint32_t>(caps.size()),
39 caps.data())));
40}
41
42INSTANTIATE_TEST_SUITE_P(
43 TableRowTest, OpcodeTableCapabilitiesTest,

Callers

nothing calls this directly

Calls 5

LookupOpcodeFunction · 0.85
ElementsInFunction · 0.85
capabilitiesMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected