File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ linters:
3737 msg : " do not use os.MkdirTemp() in tests, use t.TempDir()"
3838 - pattern : os\.Setenv()
3939 msg : " do not use os.Setenv() in tests, use t.Setenv()"
40+ - pattern : fmt\.Print.*()
41+ msg : " do not use fmt.Print() or fmt.Println() in tests"
4042 depguard :
4143 rules :
4244 internal :
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package builtin
22
33import (
44 "encoding/json"
5- "fmt"
65 "testing"
76
87 "github.com/stretchr/testify/assert"
@@ -33,7 +32,6 @@ func TestNewScriptShellTool_ToolNoArg(t *testing.T) {
3332 assert .Len (t , allTools , 1 )
3433
3534 schema , err := json .Marshal (allTools [0 ].Parameters )
36- fmt .Println (string (schema ))
3735 require .NoError (t , err )
3836 assert .JSONEq (t , `{
3937 "type": "object",
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package codemode
33import (
44 "context"
55 "encoding/json"
6- "fmt"
76 "testing"
87
98 "github.com/stretchr/testify/assert"
@@ -41,7 +40,6 @@ func TestCodeModeTool_Tools(t *testing.T) {
4140}` , string (inputSchema ))
4241
4342 outputSchema , err := json .Marshal (fetchTool .OutputSchema )
44- fmt .Println (string (outputSchema ))
4543 require .NoError (t , err )
4644 assert .JSONEq (t , `{
4745 "type": "object",
You can’t perform that action at this time.
0 commit comments