Skip to content

Commit

Permalink
fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
pavius committed Jul 10, 2017
1 parent 3075347 commit 3cbbe1a
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions zapcore/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,18 +421,18 @@ func TestEncoderConfiguration(t *testing.T) {
{
desc: "handle no-op EncodeName",
cfg: EncoderConfig{
LevelKey: "L",
TimeKey: "T",
MessageKey: "M",
NameKey: "N",
CallerKey: "C",
StacktraceKey: "S",
LineEnding: base.LineEnding,
EncodeTime: base.EncodeTime,
EncodeDuration: base.EncodeDuration,
EncodeLevel: base.EncodeLevel,
EncodeCaller: base.EncodeCaller,
EncodeName: func(string, PrimitiveArrayEncoder) {},
LevelKey: "L",
TimeKey: "T",
MessageKey: "M",
NameKey: "N",
CallerKey: "C",
StacktraceKey: "S",
LineEnding: base.LineEnding,
EncodeTime: base.EncodeTime,
EncodeDuration: base.EncodeDuration,
EncodeLevel: base.EncodeLevel,
EncodeCaller: base.EncodeCaller,
EncodeName: func(string, PrimitiveArrayEncoder) {},
},
expectedJSON: `{"L":"info","T":0,"N":"main","C":"foo.go:42","M":"hello","S":"fake-stack"}` + "\n",
expectedConsole: "0\tinfo\tfoo.go:42\thello\nfake-stack\n",
Expand All @@ -457,7 +457,8 @@ func TestEncoderConfiguration(t *testing.T) {
},
{
desc: "omit line separator definition - fall back to default",
cfg: EncoderConfig{ LevelKey: "L",
cfg: EncoderConfig{
LevelKey: "L",
TimeKey: "T",
MessageKey: "M",
NameKey: "N",
Expand Down

0 comments on commit 3cbbe1a

Please sign in to comment.