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

Function TEST_F

test/text_to_binary.literal_test.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24using spvtest::TextToBinaryTest;
25
26TEST_F(TextToBinaryTest, LiteralStringInPlaceOfLiteralNumber) {
27 EXPECT_EQ(
28 R"(Invalid unsigned integer literal: "I shouldn't be a string")",
29 CompileFailure(R"(OpSource GLSL "I shouldn't be a string")"));
30}
31
32TEST_F(TextToBinaryTest, GarbageInPlaceOfLiteralString) {
33 EXPECT_EQ("Invalid literal string 'nice-source-code'.",

Callers

nothing calls this directly

Calls 1

MakeLongUTF8StringFunction · 0.85

Tested by

no test coverage detected