Update gofmt

Co-authored-by: David Timm <dtimm@pivotal.io>
This commit is contained in:
Ben Fuller 2019-04-15 15:59:40 -06:00
parent 4f99aafb7d
commit a2659318c5
2 changed files with 12 additions and 12 deletions

View File

@ -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,7 +247,7 @@ 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)
}
})

View File

@ -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)
}
})