File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
internal/mcp/server/builtin/tools/file Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,15 @@ package file
33import (
44 "encoding/json"
55 "fmt"
6- "github.com/mark3labs/mcp-go/mcp"
7- "github.com/mark3labs/mcp-go/server"
8- "github.com/stretchr/testify/assert"
9- "github.com/stretchr/testify/require"
106 "os"
117 "path"
128 "testing"
139 "time"
10+
11+ "github.com/mark3labs/mcp-go/mcp"
12+ "github.com/mark3labs/mcp-go/server"
13+ "github.com/stretchr/testify/assert"
14+ "github.com/stretchr/testify/require"
1415)
1516
1617func TestTool_Stats (t * testing.T ) {
@@ -152,7 +153,7 @@ func TestTool_Stats_Requirements_PathIsDirectory(t *testing.T) {
152153 parsedResult .Size = 0
153154
154155 assert .Equal (t , StatsResult {
155- Path : req .Params .Arguments ["path" ].(string ),
156+ Path : req .Params .Arguments .( map [ string ] any ) ["path" ].(string ),
156157 IsDirectory : true ,
157158 IsRegular : false ,
158159 Permissions : "-rwxr-xr-x" ,
You can’t perform that action at this time.
0 commit comments