chore: add UT for PD/TiKV/TiDB/TiFlash APIs #44
Annotations
10 errors and 1 warning
lint:
pkg/pdapi/v1/client_test.go#L60
Error return value of `w.Write` is not checked (errcheck)
|
lint:
pkg/pdapi/v1/client_test.go#L113
Error return value of `w.Write` is not checked (errcheck)
|
lint:
pkg/pdapi/v1/client_test.go#L144
Error return value of `w.Write` is not checked (errcheck)
|
lint:
pkg/pdapi/v1/client_test.go#L706
string `/pd/api/v1/schedulers/evict-leader-scheduler-4` has 4 occurrences, make it a constant (goconst)
|
lint:
pkg/pdapi/v1/client_test.go#L676
string `/pd/api/v1/schedulers` has 6 occurrences, make it a constant (goconst)
|
lint:
pkg/pdapi/v1/client_test.go#L683
string `/pd/api/v1/scheduler-config/evict-leader-scheduler/list` has 4 occurrences, make it a constant (goconst)
|
lint:
pkg/pdapi/v1/client_test.go#L555
ST1003: var getMembersJsonStr should be getMembersJSONStr (stylecheck)
|
lint:
pkg/pdapi/v1/client_test.go#L588
ST1003: var getMembersJsonStr should be getMembersJSONStr (stylecheck)
|
lint:
pkg/pdapi/v1/client_test.go#L125
float-compare: use assert.InEpsilon (or InDelta) (testifylint)
|
lint:
pkg/tikvapi/v1/control_test.go#L44
require-error: for error assertions use require (testifylint)
|
setup go
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
Loading