Skip to content

Commit 759044d

Browse files
authored
Merge pull request #686 from dgageot/remove-debug-traces-tests
Remove debug traces in tests
2 parents a641120 + 4592122 commit 759044d

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

pkg/tools/builtin/script_shell_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package builtin
22

33
import (
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",

pkg/tools/codemode/codemode_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package codemode
33
import (
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",

0 commit comments

Comments
 (0)