Files
Agent-System-Backend/internal/runtime/checkpoint_plugin_test.go
T

17 lines
512 B
Go

package runtime
import (
core "agent-system-core"
"context"
"testing"
)
func TestReviewCheckpointNameMustNotInterceptPlugin(t *testing.T) {
rc := &subRC{fakeRunCtx: fakeRunCtx{ctx: context.Background(), prof: subProfile()}, id: "agent.sub.writer", tools: []core.ToolDesc{{Name: workCheckpointTool}}}
st := &subRun{rc: rc}
res := st.runTool(workCheckpointTool, `{}`)
if rc.toolRuns != 1 {
t.Fatalf("plugin tool intercepted; toolRuns=%d error=%v content=%s", rc.toolRuns, res.IsError, res.Content)
}
}