Lines Matching refs:diagnostic

67     spv_diagnostic diagnostic = nullptr;  in SetUp()  local
69 spvTextToBinary(context, text.str, text.length, &binary, &diagnostic); in SetUp()
70 spvDiagnosticPrint(diagnostic); in SetUp()
71 spvDiagnosticDestroy(diagnostic); in SetUp()
84 spv_diagnostic diagnostic = nullptr; in CompileSuccessfully() local
86 &binary, &diagnostic)); in CompileSuccessfully()
95 spv_diagnostic diagnostic = nullptr; in TEST_F() local
99 SPV_BINARY_TO_TEXT_OPTION_NONE, &text, &diagnostic)); in TEST_F()
106 spv_diagnostic diagnostic = nullptr; in TEST_F() local
110 &text, &diagnostic)); in TEST_F()
111 EXPECT_THAT(diagnostic->error, Eq(std::string("Missing module."))); in TEST_F()
112 if (diagnostic) { in TEST_F()
113 spvDiagnosticPrint(diagnostic); in TEST_F()
114 spvDiagnosticDestroy(diagnostic); in TEST_F()
125 spv_diagnostic diagnostic = nullptr; in TEST_F() local
129 SPV_BINARY_TO_TEXT_OPTION_NONE, &text, &diagnostic)); in TEST_F()
130 ASSERT_NE(nullptr, diagnostic); in TEST_F()
134 EXPECT_THAT(diagnostic->error, Eq(expected.str())); in TEST_F()
135 spvDiagnosticDestroy(diagnostic); in TEST_F()
145 spv_diagnostic diagnostic = nullptr; in TEST_F() local
150 SPV_BINARY_TO_TEXT_OPTION_NONE, &text, &diagnostic)); in TEST_F()
151 ASSERT_NE(nullptr, diagnostic); in TEST_F()
155 EXPECT_THAT(diagnostic->error, Eq(expected.str())); in TEST_F()
156 spvDiagnosticDestroy(diagnostic); in TEST_F()
502 &decoded_text, &diagnostic), in TEST_F()
504 EXPECT_EQ(nullptr, diagnostic); in TEST_F()
533 &decoded_text, &diagnostic), in TEST_P()
535 EXPECT_THAT(diagnostic, Eq(nullptr)); in TEST_P()