From 8dda10a8606bcbea6184431ea1d9edb9449d630a Mon Sep 17 00:00:00 2001 From: Springcomp Date: Tue, 14 Jan 2025 12:36:03 +0000 Subject: [PATCH] gofumpt Signed-off-by: Springcomp --- Makefile | 4 ++++ pkg/interpreter/interpreter_test.go | 1 + 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index b395a2b..03d1562 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,9 @@ build: test: build go test -v ./... +format: + gofumpt -l -w . + check: go vet ./... staticcheck ./... @@ -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; } diff --git a/pkg/interpreter/interpreter_test.go b/pkg/interpreter/interpreter_test.go index 47e9394..4d01bf4 100644 --- a/pkg/interpreter/interpreter_test.go +++ b/pkg/interpreter/interpreter_test.go @@ -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{})