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

Function TEST_F

test/binary_parse_test.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51using MaybeFlipWordsTest = spvtest::TextToBinaryTest;
52
53TEST_F(MaybeFlipWordsTest, DoNotFlip) {
54 std::vector<uint32_t> words{0x01234567, 0x89abcdef};
55 MaybeFlipWords(false, words.begin(), words.end());
56 EXPECT_EQ(words.size(), size_t(2));
57 EXPECT_EQ(words[0], 0x01234567);
58 EXPECT_EQ(words[1], 0x89abcdef);
59}
60
61TEST_F(MaybeFlipWordsTest, Flip) {
62 std::vector<uint32_t> words{0x01234567, 0x89abcdef};

Callers

nothing calls this directly

Calls 15

spvBinaryParseFunction · 0.85
ScopedContextClass · 0.85
MakeVectorFunction · 0.85
MakeInstructionFunction · 0.85
ConcatenateFunction · 0.85
ExpectedHeaderForBoundFunction · 0.85
MakeSimpleOperandFunction · 0.85
MakeLiteralStringOperandFunction · 0.85
HeaderFunction · 0.70
ParsedInstructionClass · 0.70

Tested by

no test coverage detected