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

Method Parse

test/binary_parse_test.cpp:221–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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_;

Callers 2

ParseMethod · 0.45
TEST_FFunction · 0.45

Calls 6

spvBinaryParseFunction · 0.85
ScopedContextClass · 0.85
beginMethod · 0.45
endMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected