From 05b813f2026ebe6bff33cb600775823ee8a7df6e Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 21 Jun 2021 12:12:44 +0200 Subject: nametransform: rename BadNameFlag to BadnameSuffix --- tests/cli/cli_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/cli') diff --git a/tests/cli/cli_test.go b/tests/cli/cli_test.go index 08c1b83..df36822 100644 --- a/tests/cli/cli_test.go +++ b/tests/cli/cli_test.go @@ -764,7 +764,7 @@ func TestBadname(t *testing.T) { } // Case 2: File with invalid suffix in plain name but valid cipher file - file = mnt + "/" + validFileName + nametransform.BadNameFlag + file = mnt + "/" + validFileName + nametransform.BadnameSuffix err = ioutil.WriteFile(file, []byte("Content Case 2."), 0600) if err != nil { t.Fatal(err) @@ -819,12 +819,12 @@ func TestBadname(t *testing.T) { searchstrings := []string{ validFileName, - validFileName + nametransform.BadNameFlag, + validFileName + nametransform.BadnameSuffix, "", - validFileName + invalidSuffix + nametransform.BadNameFlag, - encryptedfilename[:len(encryptedfilename)-2] + invalidSuffix + nametransform.BadNameFlag, + validFileName + invalidSuffix + nametransform.BadnameSuffix, + encryptedfilename[:len(encryptedfilename)-2] + invalidSuffix + nametransform.BadnameSuffix, "", - validFileName + "wrongPattern" + nametransform.BadNameFlag} + validFileName + "wrongPattern" + nametransform.BadnameSuffix} results := []bool{false, false, true, false, false, true, true} var filecontent string var filebytes []byte -- cgit v1.2.3