Reorganize and improve testing #5
Merged
Annotations
10 errors and 1 warning
|
Run linter:
pkg/datastore/client.go#L7
directive `//nolint:revive // Public structs required for API compatibility with cloud.google.com/go/datastore` is unused for linter "revive" (nolintlint)
|
|
Run linter:
pkg/mock/mock.go#L803
fieldalignment: struct with 24 pointer bytes could be 16 (govet)
|
|
Run linter:
pkg/datastore/query.go#L17
fieldalignment: struct with 160 pointer bytes could be 152 (govet)
|
|
Run linter:
pkg/datastore/mutation.go#L27
fieldalignment: struct with 40 pointer bytes could be 32 (govet)
|
|
Run linter:
pkg/datastore/iterator.go#L115
fieldalignment: struct with 48 pointer bytes could be 40 (govet)
|
|
Run linter:
pkg/datastore/comprehensive_coverage_test.go#L163
elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)
|
|
Run linter:
pkg/datastore/comprehensive_coverage_test.go#L137
elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)
|
|
Run linter:
pkg/datastore/comprehensive_coverage_test.go#L102
elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)
|
|
Run linter:
pkg/datastore/transaction_coverage_test.go#L12
cognitive complexity 91 of func `TestManualTransaction` is high (> 55) (gocognit)
|
|
Run linter:
pkg/datastore/iterator_coverage_test.go#L212
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)
|
|
Set up Go
Restore cache failed: Dependencies file is not found in /home/runner/work/ds9/ds9. Supported file pattern: go.sum
|
Loading