aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2023-03-21 11:10:41 -0700
committerAyke <[email protected]>2023-03-21 20:53:37 +0100
commit4d43df75d5d32d5809dde49e6b851f5bdd565855 (patch)
treed667c639c97cf7e56768a65574ade2d241e66b3e
parent57b0c2149243b50e544fd8a5f6eb0a7690abdef1 (diff)
downloadtinygo-4d43df75d5d32d5809dde49e6b851f5bdd565855.tar.gz
tinygo-4d43df75d5d32d5809dde49e6b851f5bdd565855.zip
reflect: fix some vet issues
-rw-r--r--src/reflect/value_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reflect/value_test.go b/src/reflect/value_test.go
index 2bc8f9275..148e8c81f 100644
--- a/src/reflect/value_test.go
+++ b/src/reflect/value_test.go
@@ -309,7 +309,7 @@ func TestStruct(t *testing.T) {
var ok bool
q, ok = reffb.FieldByName("Foo")
if q.Name != "Foo" || !ok {
- t.Errorf("FieldByName(Foo)=%v,%v, want Foo, true")
+ t.Errorf("FieldByName(Foo)=%v,%v, want Foo, true", q.Name, ok)
}
if got, want := q.Tag, `foo:"struct tag"`; string(got) != want {
@@ -318,7 +318,7 @@ func TestStruct(t *testing.T) {
q, ok = reffb.FieldByName("Snorble")
if q.Name != "" || ok {
- t.Errorf("FieldByName(Snorble)=%v,%v, want ``, false")
+ t.Errorf("FieldByName(Snorble)=%v,%v, want ``, false", q.Name, ok)
}
}