Skip to content
Snippets Groups Projects
Commit c33c1675 authored by ko_oler's avatar ko_oler
Browse files

fix linter

parent 084b1b3d
No related branches found
No related tags found
No related merge requests found
package zap
import (
"context"
"fmt"
"testing"
......@@ -35,7 +36,7 @@ func TestEntryEncoder_EncodeEntry(t *testing.T) {
logzap.Component("Items.Service"),
logzap.Event("Items.Create"),
logzap.Object("/spaces/WPNN/envs/9VGP/cols/GxNv/items/W0fl"),
logzap.Caller(nil, logzap.WithObject("/users/PHVz")),
logzap.Caller(context.TODO(), logzap.WithObject("/users/PHVz")),
logzap.Attr("any"),
logzap.Tags("tag1", "tag2", "tag3"),
},
......@@ -70,7 +71,7 @@ func BenchmarkEntryEncoderSimple(b *testing.B) {
fields := []zapcore.Field{
logzap.Event(items.EventCreate),
logzap.Object(items.NewItem("WPNN", "9VGP", "GxNv", "W0fl", nil, nil)),
logzap.Caller(nil, logzap.WithObject("/system")),
logzap.Caller(context.TODO(), logzap.WithObject("/system")),
logzap.Tags("tag1", "tag2", "tag3"),
}
......@@ -84,7 +85,7 @@ func BenchmarkEntryEncoderUnknownFields(b *testing.B) {
fields := []zapcore.Field{
logzap.Event(items.EventCreate),
logzap.Object(items.NewItem("WPNN", "9VGP", "GxNv", "W0fl", nil, nil)),
logzap.Caller(nil, logzap.WithObject("/system")),
logzap.Caller(context.TODO(), logzap.WithObject("/system")),
logzap.Tags("tag1", "tag2", "tag3"),
}
......@@ -102,7 +103,7 @@ func BenchmarkEntryEncoderV2Simple(b *testing.B) {
fields := []zapcore.Field{
logzap.Event(items.EventCreate),
logzap.Object(items.NewItem("WPNN", "9VGP", "GxNv", "W0fl", nil, nil)),
logzap.Caller(nil, logzap.WithObject("/system")),
logzap.Caller(context.TODO(), logzap.WithObject("/system")),
logzap.Tags("tag1", "tag2", "tag3"),
}
......@@ -116,7 +117,7 @@ func BenchmarkEntryEncoderV2UnknownFields(b *testing.B) {
fields := []zapcore.Field{
logzap.Event(items.EventCreate),
logzap.Object(items.NewItem("WPNN", "9VGP", "GxNv", "W0fl", nil, nil)),
logzap.Caller(nil, logzap.WithObject("/system")),
logzap.Caller(context.TODO(), logzap.WithObject("/system")),
logzap.Tags("tag1", "tag2", "tag3"),
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment