()
| 5 | import type { IsolateDriver, IsolateContext } from '../src/types' |
| 6 | |
| 7 | function createMockDriver(): IsolateDriver { |
| 8 | const mockContext: IsolateContext = { |
| 9 | execute: vi.fn().mockResolvedValue({ success: true, value: 42, logs: [] }), |
| 10 | dispose: vi.fn().mockResolvedValue(undefined), |
| 11 | } |
| 12 | return { |
| 13 | createContext: vi.fn().mockResolvedValue(mockContext), |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | function createMockTool(name: string) { |
| 18 | return toolDefinition({ |
no outgoing calls
no test coverage detected