mirror of
https://github.com/golang/go
synced 2024-11-17 02:14:42 -07:00
log/slog: correct formatting
Code added in CL #558755 and CL #561315 (both via github) were not appropriately formatted. Run gofmt to address this. Change-Id: Iaf7abca9c2ad4e0fabecc417234b743b6b15e9c9 Reviewed-on: https://go-review.googlesource.com/c/go/+/564719 Run-TryBot: Joel Sing <joel@sing.id.au> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Than McIntosh <thanm@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
This commit is contained in:
parent
5a41204504
commit
4ce008d7d3
@ -59,8 +59,8 @@ func TestLevelMarshalJSON(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if !bytes.Equal(data, wantData) {
|
if !bytes.Equal(data, wantData) {
|
||||||
t.Errorf("got %s, want %s", string(data), string(wantData))
|
t.Errorf("got %s, want %s", string(data), string(wantData))
|
||||||
}
|
}
|
||||||
var got Level
|
var got Level
|
||||||
if err := got.UnmarshalJSON(data); err != nil {
|
if err := got.UnmarshalJSON(data); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
@ -78,8 +78,8 @@ func TestLevelMarshalText(t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
if !bytes.Equal(data, wantData) {
|
if !bytes.Equal(data, wantData) {
|
||||||
t.Errorf("got %s, want %s", string(data), string(wantData))
|
t.Errorf("got %s, want %s", string(data), string(wantData))
|
||||||
}
|
}
|
||||||
var got Level
|
var got Level
|
||||||
if err := got.UnmarshalText(data); err != nil {
|
if err := got.UnmarshalText(data); err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
|
@ -37,9 +37,9 @@ func TestValueEqual(t *testing.T) {
|
|||||||
GroupValue(Bool("b", true), Int("i", 4)),
|
GroupValue(Bool("b", true), Int("i", 4)),
|
||||||
GroupValue(Bool("b", true), Int("j", 4)),
|
GroupValue(Bool("b", true), Int("j", 4)),
|
||||||
DurationValue(3 * time.Second),
|
DurationValue(3 * time.Second),
|
||||||
DurationValue(2 * time.Second),
|
DurationValue(2 * time.Second),
|
||||||
StringValue("foo"),
|
StringValue("foo"),
|
||||||
StringValue("fuu"),
|
StringValue("fuu"),
|
||||||
}
|
}
|
||||||
for i, v1 := range vals {
|
for i, v1 := range vals {
|
||||||
for j, v2 := range vals {
|
for j, v2 := range vals {
|
||||||
|
Loading…
Reference in New Issue
Block a user