| 27 | namespace { |
| 28 | |
| 29 | TEST(DumpMlirModuleTest, NoEnvPrefix) { |
| 30 | mlir::MLIRContext context; |
| 31 | mlir::OwningModuleRef module_ref = |
| 32 | mlir::ModuleOp::create(mlir::UnknownLoc::get(&context)); |
| 33 | unsetenv("TF_DUMP_GRAPH_PREFIX"); |
| 34 | |
| 35 | std::string filepath = DumpMlirOpToFile("module", module_ref.get()); |
| 36 | EXPECT_EQ(filepath, "(TF_DUMP_GRAPH_PREFIX not specified)"); |
| 37 | } |
| 38 | |
| 39 | TEST(DumpMlirModuleTest, LogInfo) { |
| 40 | mlir::MLIRContext context; |
nothing calls this directly
no test coverage detected