Enhance googlecloudmonitoringreceiver: Add Unit Tests for Metric Conversion and Improve Edge Case Coverage #79964
Annotations
10 errors
Lint
Error return value of `testServer.srv.Serve` is not checked (errcheck)
|
Lint
Error return value of `testServer.srv.Serve` is not checked (errcheck)
|
Lint
Error return value of `testServer.srv.Serve` is not checked (errcheck)
|
Lint
Error return value of `receiver.Shutdown` is not checked (errcheck)
|
Lint
os.Setenv() can be replaced by `t.Setenv()` in TestInitializeClient_Success (tenv)
|
Lint
os.Setenv() can be replaced by `t.Setenv()` in TestStart_Failure_InvalidMetricDescriptor_Unauthenticated_User (tenv)
|
Lint
expected-actual: need to reverse actual and expected values (testifylint)
|
Lint
expected-actual: need to reverse actual and expected values (testifylint)
|
Lint
expected-actual: need to reverse actual and expected values (testifylint)
|
Lint
len: use assert.Len (testifylint)
|
Loading