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

Function TestBuildWriteArgs_Cursor

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

Source from the content-addressed store, hash-verified

566}
567
568func TestBuildWriteArgs_Cursor(t *testing.T) {
569 sess := mockSession("cursor/0.44", cursorTools)
570 args := BuildWriteArguments(sess, "create_file", "/tmp/out.txt", "hello")
571 if args["path"] != "/tmp/out.txt" || args["file_text"] != "hello" {
572 t.Errorf("expected {path, file_text}, got %v", args)
573 }
574}
575
576func TestBuildWriteArgs_Cline(t *testing.T) {
577 sess := mockSession("cline/3.18", clineTools)

Callers

nothing calls this directly

Calls 2

mockSessionFunction · 0.85
BuildWriteArgumentsFunction · 0.85

Tested by

no test coverage detected