aboutsummaryrefslogtreecommitdiff
path: root/tests/reverse
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-08-23 15:05:15 +0200
committerJakob Unterwurzacher2021-08-23 15:05:15 +0200
commit69d88505fd7f4cb0d9e4f1918de296342fe05858 (patch)
treebbe102cb74b8d17b39ef16e3ab9b32cf94a314a4 /tests/reverse
parentc9abfc8f06e1e0ce8e8b7ca480507647572a5df7 (diff)
go mod: declare module version v2
Our git version is v2+ for some time now, but go.mod still declared v1. Hopefully making both match makes https://pkg.go.dev/github.com/rfjakob/gocryptfs/v2 work. All the import paths have been fixed like this: find . -name \*.go | xargs sed -i s%github.com/rfjakob/gocryptfs/%github.com/rfjakob/gocryptfs/v2/%
Diffstat (limited to 'tests/reverse')
-rw-r--r--tests/reverse/correctness_test.go8
-rw-r--r--tests/reverse/ctlsock_test.go4
-rw-r--r--tests/reverse/exclude_test.go8
-rw-r--r--tests/reverse/main_test.go2
-rw-r--r--tests/reverse/one_file_system_test.go2
5 files changed, 12 insertions, 12 deletions
diff --git a/tests/reverse/correctness_test.go b/tests/reverse/correctness_test.go
index 87d2f12..3b25112 100644
--- a/tests/reverse/correctness_test.go
+++ b/tests/reverse/correctness_test.go
@@ -11,9 +11,9 @@ import (
"golang.org/x/sys/unix"
- "github.com/rfjakob/gocryptfs/ctlsock"
- "github.com/rfjakob/gocryptfs/internal/syscallcompat"
- "github.com/rfjakob/gocryptfs/tests/test_helpers"
+ "github.com/rfjakob/gocryptfs/v2/ctlsock"
+ "github.com/rfjakob/gocryptfs/v2/internal/syscallcompat"
+ "github.com/rfjakob/gocryptfs/v2/tests/test_helpers"
)
// TestLongnameStat checks that file names of all sizes (1 to 255) show up in
@@ -185,7 +185,7 @@ func TestEnoent(t *testing.T) {
// If the symlink target gets too long due to base64 encoding, we should
// return ENAMETOOLONG instead of having the kernel reject the data and
// returning an I/O error to the user.
-// https://github.com/rfjakob/gocryptfs/issues/167
+// https://github.com/rfjakob/gocryptfs/v2/issues/167
func TestTooLongSymlink(t *testing.T) {
var err error
var l int
diff --git a/tests/reverse/ctlsock_test.go b/tests/reverse/ctlsock_test.go
index ecb0b96..f59fa45 100644
--- a/tests/reverse/ctlsock_test.go
+++ b/tests/reverse/ctlsock_test.go
@@ -5,8 +5,8 @@ import (
"syscall"
"testing"
- "github.com/rfjakob/gocryptfs/ctlsock"
- "github.com/rfjakob/gocryptfs/tests/test_helpers"
+ "github.com/rfjakob/gocryptfs/v2/ctlsock"
+ "github.com/rfjakob/gocryptfs/v2/tests/test_helpers"
)
var ctlSockTestCases = [][]string{
diff --git a/tests/reverse/exclude_test.go b/tests/reverse/exclude_test.go
index b0e7135..e37050c 100644
--- a/tests/reverse/exclude_test.go
+++ b/tests/reverse/exclude_test.go
@@ -5,9 +5,9 @@ import (
"path/filepath"
"testing"
- "github.com/rfjakob/gocryptfs/ctlsock"
- "github.com/rfjakob/gocryptfs/internal/nametransform"
- "github.com/rfjakob/gocryptfs/tests/test_helpers"
+ "github.com/rfjakob/gocryptfs/v2/ctlsock"
+ "github.com/rfjakob/gocryptfs/v2/internal/nametransform"
+ "github.com/rfjakob/gocryptfs/v2/tests/test_helpers"
)
func ctlsockEncryptPath(t *testing.T, sock string, path string) string {
@@ -128,7 +128,7 @@ func TestExcludeTestFs(t *testing.T) {
}
// Exclude everything using "/*", then selectively include only dir1 using "!/dir1"
-// https://github.com/rfjakob/gocryptfs/issues/588
+// https://github.com/rfjakob/gocryptfs/v2/issues/588
func TestExcludeAllOnlyDir1(t *testing.T) {
// --exclude-wildcard patterns, gitignore syntax
patterns := []string{
diff --git a/tests/reverse/main_test.go b/tests/reverse/main_test.go
index 3b9e7d0..2fc9e5e 100644
--- a/tests/reverse/main_test.go
+++ b/tests/reverse/main_test.go
@@ -6,7 +6,7 @@ import (
"os"
"testing"
- "github.com/rfjakob/gocryptfs/tests/test_helpers"
+ "github.com/rfjakob/gocryptfs/v2/tests/test_helpers"
)
var x240 = string(bytes.Repeat([]byte("x"), 240))
diff --git a/tests/reverse/one_file_system_test.go b/tests/reverse/one_file_system_test.go
index a3e441f..61190ea 100644
--- a/tests/reverse/one_file_system_test.go
+++ b/tests/reverse/one_file_system_test.go
@@ -8,7 +8,7 @@ import (
"syscall"
"testing"
- "github.com/rfjakob/gocryptfs/tests/test_helpers"
+ "github.com/rfjakob/gocryptfs/v2/tests/test_helpers"
)
func TestOneFileSystem(t *testing.T) {