MCPcopy Create free account
hub / github.com/astercloud/aster / newMockTool

Function newMockTool

pkg/executionplan/executor_test.go:54–61  ·  view source on GitHub ↗
(name string, result any, err error)

Source from the content-addressed store, hash-verified

52}
53
54func newMockTool(name string, result any, err error) *mockTool {
55 return &mockTool{
56 name: name,
57 description: "Mock " + name,
58 result: result,
59 err: err,
60 }
61}
62
63func newDelayedMockTool(name string, result any, delay time.Duration) *mockTool {
64 return &mockTool{

Callers 14

TestNewExecutorFunction · 0.85
TestExecuteSequentialFunction · 0.85
TestExecuteWithErrorFunction · 0.85
TestExecuteToolNotFoundFunction · 0.85
TestResumeFunction · 0.85
TestOnStepFailedCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected