summaryrefslogtreecommitdiff
path: root/tests/reverse/main_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-02-16 21:20:29 +0100
committerJakob Unterwurzacher2017-02-16 21:20:29 +0100
commit62e7eb7d04793d7d629c1105a3eddf04e396ac24 (patch)
treec3589273e1ccd86553ea361f42c61cda3e4e63fd /tests/reverse/main_test.go
parent45c1ea499ee7f1f4309f1f8aa8b78c16642662db (diff)
tests: reverse: check Access() call
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} {