Compiles the given assembly text, and saves it into 'binary'.
| 79 | |
| 80 | // Compiles the given assembly text, and saves it into 'binary'. |
| 81 | void CompileSuccessfully(std::string text) { |
| 82 | spvBinaryDestroy(binary); |
| 83 | binary = nullptr; |
| 84 | spv_diagnostic diagnostic = nullptr; |
| 85 | EXPECT_EQ(SPV_SUCCESS, spvTextToBinary(context, text.c_str(), text.size(), |
| 86 | &binary, &diagnostic)); |
| 87 | } |
| 88 | |
| 89 | spv_context context; |
| 90 | spv_binary binary; |
nothing calls this directly
no test coverage detected