~nilium/go-ini

e409b74538dc0986d0213a729c1fa54c646e720a — Noel Cower 7 years ago 2b409f9
Fix format strings in tests

Identified by go vet:

- ini_test.go:37: missing argument for Errorf("%q"): format reads
  arg 3, have only 2 args
- values_test.go:75: possible formatting directive in Log call

Change-Id: Ic11995579e36d0c0c9dcab3e64f224980902e624
2 files changed, 2 insertions(+), 2 deletions(-)

M ini_test.go
M values_test.go
M ini_test.go => ini_test.go +1 -1
@@ 34,7 34,7 @@ func TestPanicToErr_nonerr(t *testing.T) {
	}()

	if want := "ini: panic: foobar!"; err == nil || err.Error() != want {
		t.Errorf("err(%v) = %v; want %q", err, want)
		t.Errorf("err(%T) = %v; want %q", err, err, want)
	}
}


M values_test.go => values_test.go +1 -1
@@ 72,7 72,7 @@ func TestValues_matching(t *testing.T) {
		if !reflect.DeepEqual(expected, got) {
			t.Errorf("v.Matching(...) = %#v; want %#v", got, expected)
		} else {
			t.Log("v.Matching(...) = %#v", got)
			t.Logf("v.Matching(...) = %#v", got)
		}
	}