MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / TestBuildWriteArgs_Cline

Function TestBuildWriteArgs_Cline

internal/sessions/transfer_test.go:576–582  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

574}
575
576func TestBuildWriteArgs_Cline(t *testing.T) {
577 sess := mockSession("cline/3.18", clineTools)
578 args := BuildWriteArguments(sess, "write_file", "/tmp/out.txt", "hello")
579 if args["path"] != "/tmp/out.txt" || args["content"] != "hello" {
580 t.Errorf("expected {path, content}, got %v", args)
581 }
582}
583
584func TestBuildCommandArgs_OpenClaw(t *testing.T) {
585 sess := mockSession("openclaw/1.0", openClawTools)

Callers

nothing calls this directly

Calls 2

mockSessionFunction · 0.85
BuildWriteArgumentsFunction · 0.85

Tested by

no test coverage detected