Skip to content

Commit

Permalink
gofumpt
Browse files Browse the repository at this point in the history
Signed-off-by: Springcomp <[email protected]>
  • Loading branch information
springcomp committed Jan 14, 2025
1 parent 22c8032 commit 8dda10a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ build:
test: build
go test -v ./...

format:
gofumpt -l -w .

check:
go vet ./...
staticcheck ./...
Expand All @@ -43,5 +46,6 @@ pprof-cpu:

install-dev-cmds:
go install honnef.co/go/tools/cmd/staticcheck@latest
go install mvdan.cc/gofumpt@latest
go install golang.org/x/tools/cmd/stringer@latest
command -v golangci-lint || { curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $$(go env GOPATH)/bin v1.61.0; }
1 change: 1 addition & 0 deletions pkg/interpreter/interpreter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ func TestCanSupportEvaluatingRightHandSideOfStringSlice(t *testing.T) {
assert.Nil(err)
assert.Equal(result.(float64), 3.0)
}

func TestErrEvaluatingRightHandSideOfStringSlice(t *testing.T) {
assert := assert.New(t)
data := make(map[string]interface{})
Expand Down

0 comments on commit 8dda10a

Please sign in to comment.