Commit 1878a138 authored by Aaron Jacobs's avatar Aaron Jacobs

MemFSTest.RenameNonExistentFile

parent 7fb4f4d3
...@@ -1643,5 +1643,8 @@ func (t *MemFSTest) RenameOverExisting_WrongType() { ...@@ -1643,5 +1643,8 @@ func (t *MemFSTest) RenameOverExisting_WrongType() {
} }
func (t *MemFSTest) RenameNonExistentFile() { func (t *MemFSTest) RenameNonExistentFile() {
AssertTrue(false, "TODO") var err error
err = os.Rename(path.Join(t.Dir, "foo"), path.Join(t.Dir, "bar"))
ExpectThat(err, Error(HasSubstr("no such file")))
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment