Skip to content

Commit

Permalink
add some govet fixes for more reflectx tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoiron committed Jan 12, 2016
1 parent 2ba7d73 commit ad8cd54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reflectx/reflect_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func TestNestedStruct(t *testing.T) {
}
v = m.FieldByName(pv, "asset.details.active")
if v.Interface().(bool) != post.Asset.Details.Active {
t.Errorf("Expecting %s, got %s", post.Asset.Details.Active, v.Interface().(bool))
t.Errorf("Expecting %v, got %v", post.Asset.Details.Active, v.Interface().(bool))
}
}

Expand Down Expand Up @@ -243,7 +243,7 @@ func TestInlineStruct(t *testing.T) {
}
v = m.FieldByName(ev, "boss.id")
if ival(v) != em.Boss.ID {
t.Errorf("Expecting %s, got %s", em.Boss.ID, ival(v))
t.Errorf("Expecting %v, got %v", em.Boss.ID, ival(v))
}
}

Expand Down

0 comments on commit ad8cd54

Please sign in to comment.