Skip to content

implement mock iterators, improve tests #25

implement mock iterators, improve tests

implement mock iterators, improve tests #25

Triggered via pull request January 18, 2026 00:04
Status Success
Total duration 1m 12s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
test: pkg/mock/mock.go#L1047
early-return: if c { ... } else { ... return } can be simplified to if !c { ... return } ... (move short variable declaration to its own line if necessary) (revive)
test: pkg/datastore/test_helper.go#L27
exported: exported function TestConfig should have comment or be unexported (revive)
test: pkg/mock/mock.go#L1233
`if ok` has complex nested blocks (complexity: 23) (nestif)
test: pkg/mock/mock.go#L1021
Function name: matchesFilter, Cyclomatic Complexity: 54, Halstead Volume: 4047.85, Maintainability Index: 17 (maintidx)
test: pkg/datastore/client.go#L56
fieldalignment: struct with 32 pointer bytes could be 24 (govet)
test: pkg/datastore/key_range_integration_test.go#L46
comparing with == will fail on wrapped errors. Use errors.Is to check for a specific error (errorlint)