blob: c86328eb65be88c52a0ef80277e793395afbbea8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
* Running: MoveFileSimple
PASS Succeeded: "/a/b".moveTo("/a", "c")
PASS Verified entry: ENTRY {path:/a name:a type:DIRECTORY}
PASS Verified entry does NOT exist: /a/b
PASS Verified entry: ENTRY {path:/a/c name:c type:FILE}
* Running: MoveDirectorySimple
PASS Succeeded: "/a/b".moveTo("/a", "c")
PASS Verified entry: ENTRY {path:/a name:a type:DIRECTORY}
PASS Verified entry does NOT exist: /a/b
PASS Verified entry: ENTRY {path:/a/c name:c type:DIRECTORY}
* Running: MoveFileToDifferentDirectory
PASS Succeeded: "/a/b".moveTo("/c", "d")
PASS Verified entry: ENTRY {path:/a name:a type:DIRECTORY}
PASS Verified entry does NOT exist: /a/b
PASS Verified entry: ENTRY {path:/c/d name:d type:FILE}
* Running: MoveFileWithEmptyName
PASS Succeeded: "/a/b".moveTo("/c", "null")
PASS Verified entry: ENTRY {path:/a name:a type:DIRECTORY}
PASS Verified entry does NOT exist: /a/b
PASS Verified entry: ENTRY {path:/c/b name:b type:FILE}
* Running: MoveFileWithEmptyNameToSameDirectory
PASS this.expectedError + "" is "InvalidModificationError"
PASS Verified entry: ENTRY {path:/a name:a type:DIRECTORY}
PASS Verified entry: ENTRY {path:/a/b name:b type:FILE}
* Running: MoveFileWithSameName
PASS this.expectedError + "" is "InvalidModificationError"
PASS Verified entry: ENTRY {path:/a name:a type:DIRECTORY}
PASS Verified entry: ENTRY {path:/a/b name:b type:FILE}
* Running: MoveForNonExistentEntry
PASS Succeeded: "/a/b".remove()
PASS this.expectedError + "" is "NotFoundError"
PASS Verified entry: ENTRY {path:/a name:a type:DIRECTORY}
PASS Verified entry: ENTRY {path:/c name:c type:DIRECTORY}
* Running: MoveEntryToNonExistentDirectory
PASS Succeeded: "/c".remove()
PASS this.expectedError + "" is "NotFoundError"
PASS Verified entry: ENTRY {path:/a name:a type:DIRECTORY}
PASS Verified entry: ENTRY {path:/a/b name:b type:FILE}
* Running: MoveEntryToItsChild
PASS this.expectedError + "" is "InvalidModificationError"
PASS this.expectedError + "" is "InvalidModificationError"
PASS Verified entry: ENTRY {path:/a name:a type:DIRECTORY}
PASS Verified entry: ENTRY {path:/a/b name:b type:DIRECTORY}
PASS Verified entry: ENTRY {path:/a/b/c name:c type:DIRECTORY}
* Running: MoveRecursive
PASS Succeeded: "/a".moveTo("/b", "a")
PASS Verified entry does NOT exist: /a
PASS Verified entry: ENTRY {path:/b/a name:a type:DIRECTORY}
PASS Verified entry: ENTRY {path:/b/a/b name:b type:DIRECTORY}
PASS Verified entry: ENTRY {path:/b/a/b/c name:c type:FILE}
PASS Verified entry: ENTRY {path:/b/a/b/d name:d type:FILE}
* Running: OverwritingMoveFileToFile
PASS Succeeded: "/a".moveTo("/", "b")
PASS Verified entry: ENTRY {path:/b name:b type:FILE}
* Running: OverwritingMoveDirectoryToEmptyDirectory
PASS Succeeded: "/a".moveTo("/", "c")
PASS Verified entry: ENTRY {path:/c name:c type:DIRECTORY}
PASS Verified entry: ENTRY {path:/c/b name:b type:FILE}
PASS Verified entry does NOT exist: /a
* Running: OverwritingMoveFileToDirectory
PASS this.expectedError + "" is "InvalidModificationError"
PASS Verified entry: ENTRY {path:/a name:a type:FILE}
PASS Verified entry: ENTRY {path:/b name:b type:DIRECTORY}
* Running: OverwritingMoveDirectoryToFile
PASS this.expectedError + "" is "InvalidModificationError"
PASS Verified entry: ENTRY {path:/a name:a type:DIRECTORY}
PASS Verified entry: ENTRY {path:/b name:b type:FILE}
* Running: OverwritingMoveFileToNonemptyDirectory
PASS this.expectedError + "" is "InvalidModificationError"
PASS Verified entry: ENTRY {path:/a name:a type:FILE}
PASS Verified entry: ENTRY {path:/b name:b type:DIRECTORY}
PASS Verified entry: ENTRY {path:/b/c name:c type:FILE}
* Running: OverwritingMoveDirectoryToNonemptyDirectory
PASS this.expectedError + "" is "InvalidModificationError"
PASS Verified entry: ENTRY {path:/a name:a type:DIRECTORY}
PASS Verified entry: ENTRY {path:/a/b name:b type:FILE}
PASS Verified entry: ENTRY {path:/c name:c type:DIRECTORY}
PASS Verified entry: ENTRY {path:/c/d name:d type:FILE}
Finished running tests.
PASS successfullyParsed is true
TEST COMPLETE
|