aboutsummaryrefslogtreecommitdiff
path: root/tests/reverse/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reverse/main_test.go')
-rw-r--r--tests/reverse/main_test.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/reverse/main_test.go b/tests/reverse/main_test.go
index be6016f..3425289 100644
--- a/tests/reverse/main_test.go
+++ b/tests/reverse/main_test.go
@@ -8,10 +8,20 @@ import (
"github.com/rfjakob/gocryptfs/tests/test_helpers"
)
-var dirA, dirB, dirC string
var x240 = string(bytes.Repeat([]byte("x"), 240))
var plaintextnames bool
+// dirA is a normal directory
+var dirA string
+
+// dirB is the reverse mount backed by dirA
+var dirB string
+
+// dirC is a forward mount backed by dirB
+var dirC string
+
+// Create directory "dirA", mount it reverse to "dirB", mount it forward
+// to "dirC".
func TestMain(m *testing.M) {
var r int
for _, plaintextnames = range []bool{false, true} {