From c4e2c664a5f7488ab11e4433aeb9efcffc33a871 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 2 Dec 2020 07:01:40 +0000 Subject: some cleaning up --- pkg/datamaps/writer_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/datamaps/writer_test.go b/pkg/datamaps/writer_test.go index bb86c9b..c6cf547 100644 --- a/pkg/datamaps/writer_test.go +++ b/pkg/datamaps/writer_test.go @@ -22,7 +22,7 @@ func testSetup() (*Options, error) { _, err := setupDB("./testdata/test.db") if err != nil { - fmt.Errorf("Expected to be able to set up the database.") + fmt.Errorf("expected to be able to set up the database") } opts := Options{ @@ -35,7 +35,7 @@ func testSetup() (*Options, error) { } if err := DatamapToDB(&opts); err != nil { - fmt.Errorf("Unable to write datamap to database file because %v.", err) + fmt.Errorf("unable to write datamap to database file because %v", err) } if err := ImportToDB(&opts); err != nil { @@ -123,10 +123,10 @@ func TestWriteMaster(t *testing.T) { if err != nil { t.Fatalf("something wrong %v", err) } - got_s := strings.TrimSuffix(string(got), "\n") - if strings.Compare(got_s, test.value) != 0 { + gots := strings.TrimSuffix(string(got), "\n") + if strings.Compare(gots, test.value) != 0 { t.Errorf("when testing the database, for key %s in file %s we expected %s but got %s", test.key, - test.filename, test.value, got_s) + test.filename, test.value, gots) } } -- cgit v1.2.3