| 31 | ::testing::TestWithParam<ExpectedOpCodeCapabilities>; |
| 32 | |
| 33 | TEST_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 | |
| 42 | INSTANTIATE_TEST_SUITE_P( |
| 43 | TableRowTest, OpcodeTableCapabilitiesTest, |
nothing calls this directly
no test coverage detected