aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-12-02 07:01:40 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-12-02 07:01:40 +0000
commitc4e2c664a5f7488ab11e4433aeb9efcffc33a871 (patch)
treed8bd8ae03afb1d8c36e207d850484dc18b8b48b6
parent19108ae6f38c18d14c22759be43af7368e7c2b89 (diff)
some cleaning up
-rw-r--r--pkg/datamaps/writer_test.go10
1 files 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)
}
}