From 2efef1e270a0e374c479326ab2c296b5e9fdc34d Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 21 Jun 2021 11:53:33 +0200 Subject: nametransform: delete NameTransformer interface Useless layer of indirection. --- tests/defaults/main_test.go | 3 +++ tests/test_helpers/helpers.go | 2 ++ 2 files changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/defaults/main_test.go b/tests/defaults/main_test.go index 8873f8f..e7e065e 100644 --- a/tests/defaults/main_test.go +++ b/tests/defaults/main_test.go @@ -18,6 +18,9 @@ import ( func TestMain(m *testing.M) { test_helpers.ResetTmpDir(true) + // TestZerokey() in tests/cli verifies that mounting with `-zerokey` is equivalent + // to mounting with a config file with all-default options (just the masterkey + // set to all-zero). test_helpers.MountOrExit(test_helpers.DefaultCipherDir, test_helpers.DefaultPlainDir, "-zerokey") r := m.Run() test_helpers.UnmountPanic(test_helpers.DefaultPlainDir) diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go index b98c0f7..5bc1298 100644 --- a/tests/test_helpers/helpers.go +++ b/tests/test_helpers/helpers.go @@ -141,6 +141,8 @@ func isExt4(path string) bool { // gocryptfs -q -init -extpass "echo test" -scryptn=10 $extraArgs $cipherdir // // It returns cipherdir without a trailing slash. +// +// If t is set, t.Fatal() is called on error, log.Panic() otherwise. func InitFS(t *testing.T, extraArgs ...string) string { prefix := "x." if t != nil { -- cgit v1.2.3