MCPcopy Create free account
hub / github.com/bcefghj/miniClaudeCode / TestToolResultDataclass

Class TestToolResultDataclass

tests/test_agent_loop.py:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84
85class 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
95if __name__ == "__main__":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected