| 219 | ~BinaryParseTest() override { spvDiagnosticDestroy(diagnostic_); } |
| 220 | |
| 221 | void Parse(const SpirvVector& words, spv_result_t expected_result, |
| 222 | bool flip_words = false) { |
| 223 | SpirvVector flipped_words(words); |
| 224 | MaybeFlipWords(flip_words, flipped_words.begin(), flipped_words.end()); |
| 225 | EXPECT_EQ(expected_result, |
| 226 | spvBinaryParse(ScopedContext().context, &client_, |
| 227 | flipped_words.data(), flipped_words.size(), |
| 228 | invoke_header, invoke_instruction, &diagnostic_)); |
| 229 | } |
| 230 | |
| 231 | spv_diagnostic diagnostic_ = nullptr; |
| 232 | MockParseClient client_; |
no test coverage detected