diff options
author | Jakob Unterwurzacher | 2016-09-25 19:48:21 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-09-25 19:48:21 +0200 |
commit | 5f4b16c00f2475a8efd0ae0d4d4e26f92b563dc0 (patch) | |
tree | 5b9a65d94c3cc58c032e731ea4cb776947b30ebd /tests/matrix/matrix_test.go | |
parent | 166ba74a053898a52ff2e48125c1df97f35a85fd (diff) |
Implement changes proposed by gosimple.
Also delete the unused "dirIVNameStruct", found by deadcode.
Diffstat (limited to 'tests/matrix/matrix_test.go')
-rw-r--r-- | tests/matrix/matrix_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go index 46ffbcb..663482e 100644 --- a/tests/matrix/matrix_test.go +++ b/tests/matrix/matrix_test.go @@ -414,17 +414,17 @@ func TestRmwRace(t *testing.T) { func TestFiltered(t *testing.T) { filteredFile := test_helpers.DefaultPlainDir + "/gocryptfs.conf" file, err := os.Create(filteredFile) - if plaintextnames == true && err == nil { + if plaintextnames && err == nil { t.Errorf("should have failed but didn't") - } else if plaintextnames == false && err != nil { + } else if !plaintextnames && err != nil { t.Error(err) } file.Close() err = os.Remove(filteredFile) - if plaintextnames == true && err == nil { + if plaintextnames && err == nil { t.Errorf("should have failed but didn't") - } else if plaintextnames == false && err != nil { + } else if !plaintextnames && err != nil { t.Error(err) } } @@ -436,9 +436,9 @@ func TestFilenameEncryption(t *testing.T) { t.Fatal(err) } _, err = os.Stat(test_helpers.DefaultCipherDir + "/TestFilenameEncryption.txt") - if plaintextnames == true && err != nil { + if plaintextnames && err != nil { t.Errorf("plaintextnames not working: %v", err) - } else if plaintextnames == false && err == nil { + } else if !plaintextnames && err == nil { t.Errorf("file name encryption not working") } } |