Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
jacobsa-fuse
Commits
542984f5
Commit
542984f5
authored
Jun 25, 2015
by
Aaron Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MemFSTest.RenameIntoFileSystem
parent
a69cbc21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
samples/memfs/memfs_test.go
samples/memfs/memfs_test.go
+13
-5
No files found.
samples/memfs/memfs_test.go
View file @
542984f5
...
...
@@ -1536,12 +1536,20 @@ func (t *MemFSTest) RenameOutOfFileSystem() {
ExpectThat
(
err
,
Error
(
HasSubstr
(
"cross-device"
)))
}
func
(
t
*
MemFSTest
)
RenameIntoFileSystem_File
()
{
AssertTrue
(
false
,
"TODO"
)
}
func
(
t
*
MemFSTest
)
RenameIntoFileSystem
()
{
var
err
error
func
(
t
*
MemFSTest
)
RenameIntoFileSystem_Directory
()
{
AssertTrue
(
false
,
"TODO"
)
// Create a file outside of our file system.
f
,
err
:=
ioutil
.
TempFile
(
""
,
"memfs_test"
)
AssertEq
(
nil
,
err
)
defer
f
.
Close
()
oldPath
:=
f
.
Name
()
defer
os
.
Remove
(
oldPath
)
// Attempt to move it into the file system.
err
=
os
.
Rename
(
oldPath
,
path
.
Join
(
t
.
Dir
,
"bar"
))
ExpectThat
(
err
,
Error
(
HasSubstr
(
"cross-device"
)))
}
func
(
t
*
MemFSTest
)
RenameOverExistingFile
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment