mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-27 20:42:58 +00:00
Update gofmt
Co-authored-by: David Timm <dtimm@pivotal.io>
This commit is contained in:
parent
4f99aafb7d
commit
a2659318c5
@ -190,9 +190,9 @@ func TestMicroTimeEqualTime(t *testing.T) {
|
||||
func TestMicroTimeBefore(t *testing.T) {
|
||||
t1 := NewMicroTime(time.Now())
|
||||
cases := []struct {
|
||||
name string
|
||||
x *MicroTime
|
||||
y *MicroTime
|
||||
name string
|
||||
x *MicroTime
|
||||
y *MicroTime
|
||||
}{
|
||||
{"nil <? nil", nil, nil},
|
||||
{"!nil <? !nil", &t1, &t1},
|
||||
@ -213,9 +213,9 @@ func TestMicroTimeBeforeTime(t *testing.T) {
|
||||
t1 := NewMicroTime(time.Now())
|
||||
t2 := NewTime(t1.Time)
|
||||
cases := []struct {
|
||||
name string
|
||||
x *MicroTime
|
||||
y *Time
|
||||
name string
|
||||
x *MicroTime
|
||||
y *Time
|
||||
}{
|
||||
{"nil <? nil", nil, nil},
|
||||
{"!nil <? !nil", &t1, &t2},
|
||||
@ -247,9 +247,9 @@ func TestMicroTimeIsZero(t *testing.T) {
|
||||
for _, c := range cases {
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
result := c.x.IsZero()
|
||||
if result != c.result{
|
||||
if result != c.result {
|
||||
t.Errorf("Failed equality test for '%v': expected %+v, got %+v", c.x, c.result, result)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -199,9 +199,9 @@ func TestTimeEqual(t *testing.T) {
|
||||
func TestTimeBefore(t *testing.T) {
|
||||
t1 := NewTime(time.Now())
|
||||
cases := []struct {
|
||||
name string
|
||||
x *Time
|
||||
y *Time
|
||||
name string
|
||||
x *Time
|
||||
y *Time
|
||||
}{
|
||||
{"nil <? nil", nil, nil},
|
||||
{"!nil <? !nil", &t1, &t1},
|
||||
@ -233,7 +233,7 @@ func TestTimeIsZero(t *testing.T) {
|
||||
for _, c := range cases {
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
result := c.x.IsZero()
|
||||
if result != c.result{
|
||||
if result != c.result {
|
||||
t.Errorf("Failed equality test for '%v': expected %+v, got %+v", c.x, c.result, result)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user