This test exercises the "go_rename_symbol" MCP tool.

-- flags --
-mcp
-ignore_extra_diags

-- go.mod --
module example.com

//@mcptool("go_rename_symbol", `{"file":"$WORKDIR/a/a.go","symbol":"Foo", "new_name": "Bar"}`, output=aFoo)
//@mcptool("go_rename_symbol", `{"file":"$WORKDIR/a/a.go","symbol":"NonExistent", "new_name": "Bar"}`, output=aErr)

-- a/a.go --
package a

func Foo() {}

func callFoo() {
    Foo()
}

-- @aFoo --
The following changes are necessary to rename the symbol:
--- $WORKDIR/a/a.go
+++ $WORKDIR/a/a.go
@@ -1,8 +1,8 @@
 package a
 
-func Foo() {}
+func Bar() {}
 
 func callFoo() {
-    Foo()
+    Bar()
 }
 


-- @aErr --
failed to resolve name "NonExistent"
