Tests that the instruction count in ValidationState is correct.
| 122 | |
| 123 | // Tests that the instruction count in ValidationState is correct. |
| 124 | TEST_F(ValidationStateTest, CheckNumInstructions) { |
| 125 | std::string spirv = std::string(kHeader) + "%int = OpTypeInt 32 0"; |
| 126 | CompileSuccessfully(spirv); |
| 127 | EXPECT_EQ(SPV_SUCCESS, ValidateAndRetrieveValidationState()); |
| 128 | EXPECT_EQ(size_t(4), vstate_->ordered_instructions().size()); |
| 129 | } |
| 130 | |
| 131 | // Tests that the number of global variables in ValidationState is correct. |
| 132 | TEST_F(ValidationStateTest, CheckNumGlobalVars) { |
nothing calls this directly
no test coverage detected