| 83 | |
| 84 | |
| 85 | class TestToolResultDataclass(unittest.TestCase): |
| 86 | def test_default_not_error(self): |
| 87 | r = ToolResult(output="ok") |
| 88 | self.assertFalse(r.is_error) |
| 89 | |
| 90 | def test_error_flag(self): |
| 91 | r = ToolResult(output="fail", is_error=True) |
| 92 | self.assertTrue(r.is_error) |
| 93 | |
| 94 | |
| 95 | if __name__ == "__main__": |
nothing calls this directly
no outgoing calls
no test coverage detected