Verify the DebugInfo is valid.
(self, debug_info)
| 52 | class TestModels(test_util.TensorFlowTestCase): |
| 53 | |
| 54 | def assertValidDebugInfo(self, debug_info): |
| 55 | """Verify the DebugInfo is valid.""" |
| 56 | file_names = set() |
| 57 | for file_path in debug_info.files: |
| 58 | file_names.add(os.path.basename(file_path)) |
| 59 | # To make the test independent on how the nodes are created, we only assert |
| 60 | # the name of this test file. |
| 61 | self.assertIn('lite_test.py', file_names) |
| 62 | self.assertNotIn('lite_v2_test.py', file_names) |
| 63 | |
| 64 | |
| 65 | class FromConstructor(TestModels): |
no test coverage detected