You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2026-06-03 18:35:08 +02:00
[chore]: enable len and empty rules from testifylint (#5832)
#### Description Testifylint is a linter that provides best practices with the use of testify. This PR enables [empty](https://github.com/Antonboom/testifylint?tab=readme-ov-file#empty) and [len](https://github.com/Antonboom/testifylint?tab=readme-ov-file#len) rules from [testifylint](https://github.com/Antonboom/testifylint) Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -111,7 +111,7 @@ func TestLoggerEnabledFnUnset(t *testing.T) {
|
||||
func TestRecorderEmitAndReset(t *testing.T) {
|
||||
r := NewRecorder()
|
||||
l := r.Logger("test")
|
||||
assert.Len(t, r.Result()[0].Records, 0)
|
||||
assert.Empty(t, r.Result()[0].Records)
|
||||
|
||||
r1 := log.Record{}
|
||||
r1.SetSeverity(log.SeverityInfo)
|
||||
|
||||
Reference in New Issue
Block a user