| 30 | namespace { |
| 31 | |
| 32 | std::unique_ptr<Compiler> CreateCompiler() { |
| 33 | auto builder = NewCompilerBuilder(internal::GetSharedTestingDescriptorPool()); |
| 34 | ABSL_CHECK_OK(builder); |
| 35 | ABSL_CHECK_OK((*builder)->AddLibrary(StandardCompilerLibrary())); |
| 36 | auto compiler = (*builder)->Build(); |
| 37 | ABSL_CHECK_OK(compiler); |
| 38 | return *std::move(compiler); |
| 39 | } |
| 40 | |
| 41 | TEST(AstDepthValidatorTest, Basic) { |
| 42 | auto compiler = CreateCompiler(); |
no test coverage detected