aboutsummaryrefslogtreecommitdiff
path: root/tests/matrix/matrix_test.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-01-20 13:41:20 +0100
committerJakob Unterwurzacher2019-01-20 13:41:20 +0100
commitfab585ec0193ec20b46b4d095af5c7226162c89d (patch)
treee5a2f064b8721799d3787f4181f571a85213c808 /tests/matrix/matrix_test.go
parent3d6b2685fb926b40b4eb528a8cbdc3871444d492 (diff)
tests: matrix: split out directory tests into their own file
matrix_test.go is already too big.
Diffstat (limited to 'tests/matrix/matrix_test.go')
-rw-r--r--tests/matrix/matrix_test.go25
1 files changed, 1 insertions, 24 deletions
diff --git a/tests/matrix/matrix_test.go b/tests/matrix/matrix_test.go
index e4c6b5f..be47990 100644
--- a/tests/matrix/matrix_test.go
+++ b/tests/matrix/matrix_test.go
@@ -372,34 +372,11 @@ func TestFilenameEncryption(t *testing.T) {
}
}
-// Test Mkdir and Rmdir
-func testMkdirRmdir(t *testing.T) {
- test_helpers.TestMkdirRmdir(t, test_helpers.DefaultPlainDir)
-}
-
// Test Rename
-func testRename(t *testing.T) {
+func TestRename(t *testing.T) {
test_helpers.TestRename(t, test_helpers.DefaultPlainDir)
}
-// Overwrite an empty directory with another directory
-func TestDirOverwrite(t *testing.T) {
- dir1 := test_helpers.DefaultPlainDir + "/DirOverwrite1"
- dir2 := test_helpers.DefaultPlainDir + "/DirOverwrite2"
- err := os.Mkdir(dir1, 0777)
- if err != nil {
- t.Fatal(err)
- }
- err = os.Mkdir(dir2, 0777)
- if err != nil {
- t.Fatal(err)
- }
- err = syscall.Rename(dir1, dir2)
- if err != nil {
- t.Fatal(err)
- }
-}
-
func TestLongNames(t *testing.T) {
fi, err := ioutil.ReadDir(test_helpers.DefaultCipherDir)
if err != nil {