The tests are not running correctly, although I have not changed anything in the project
go generate
INFO convenient Generating convenient error response {"at": "claim-api.yml:131:7"}
gofmt -s -l -w $(go list -f {{.Dir}} ./... | grep -v /vendor/)
go test $(go list ./... | grep -v /vendor/) -race -coverprofile cover.out
? github.com/tonkeeper/claim-api-go [no test files]
github.com/tonkeeper/claim-api-go/cmd/api coverage: 0.0% of statements
github.com/tonkeeper/claim-api-go/pkg/utils coverage: 0.0% of statements
github.com/tonkeeper/claim-api-go/pkg/api/oas coverage: 0.0% of statements
--- FAIL: TestHandler_getStateInit (0.64s)
--- FAIL: TestHandler_getStateInit/#00 (0.64s)
panic: assignment to entry in nil map [recovered]
panic: assignment to entry in nil map
goroutine 24 [running]:
testing.tRunner.func1.2({0xd246a0, 0xef4e30})
/usr/local/go/src/testing/testing.go:1632 +0x3fc
testing.tRunner.func1()
/usr/local/go/src/testing/testing.go:1635 +0x6b6
panic({0xd246a0?, 0xef4e30?})
/usr/local/go/src/runtime/panic.go:785 +0x132
github.com/tonkeeper/claim-api-go/pkg/api.(*Handler).setJettonMasterState(0xc000144840, {0x0, {0xfa, 0x67, 0xd0, 0xc7, 0x73, 0x93, 0x31, 0xfb, ...}}, ...)
/home/zpnst/Documents/programming/golang/ton/projects/claim-api-go/pkg/api/handler.go:390 +0x11f
github.com/tonkeeper/claim-api-go/pkg/api.(*Handler).executor(0xc000144840, {0xefd338, 0xc000212380}, {0x0, {0xfa, 0x67, 0xd0, 0xc7, 0x73, 0x93, ...}})
/home/zpnst/Documents/programming/golang/ton/projects/claim-api-go/pkg/api/handler.go:355 +0x475
github.com/tonkeeper/claim-api-go/pkg/api.(*Handler).getStateInit.func1()
/home/zpnst/Documents/programming/golang/ton/projects/claim-api-go/pkg/api/handler.go:246 +0x157
github.com/avast/retry-go.Do(0xc0005c9d60, {0xc000247d50, 0x2, 0x100247d90?})
/home/zpnst/go/pkg/mod/github.com/avast/retry-go@v3.0.0+incompatible/retry.go:127 +0x588
github.com/tonkeeper/claim-api-go/pkg/api.(*Handler).getStateInit(0xc000144840, {0xefce60, 0x2250620}, {0x0, {0x6c, 0xcd, 0x32, 0x5a, 0x85, 0x8c, ...}})
/home/zpnst/Documents/programming/golang/ton/projects/claim-api-go/pkg/api/handler.go:243 +0x265
github.com/tonkeeper/claim-api-go/pkg/api.TestHandler_getStateInit.func1(0xc00012ed00)
/home/zpnst/Documents/programming/golang/ton/projects/claim-api-go/pkg/api/handler_test.go:36 +0x2f6
testing.tRunner(0xc00012ed00, 0xc000114b00)
/usr/local/go/src/testing/testing.go:1690 +0x227
created by testing.(*T).Run in goroutine 23
/usr/local/go/src/testing/testing.go:1743 +0x826
FAIL github.com/tonkeeper/claim-api-go/pkg/api 0.653s
ok github.com/tonkeeper/claim-api-go/pkg/prover 1.100s coverage: 56.8% of statements
FAIL
make: *** [Makefile:9: test] Error 1
The tests are not running correctly, although I have not changed anything in the project