Add a testcase.
This commit is contained in:
parent
95e1702284
commit
6c407d0592
@ -1359,6 +1359,12 @@ fn read_dir_not_found() {
|
|||||||
assert_eq!(res.err().unwrap().kind(), ErrorKind::NotFound);
|
assert_eq!(res.err().unwrap().kind(), ErrorKind::NotFound);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn file_open_not_found() {
|
||||||
|
let res = File::open("/path/that/does/not/exist");
|
||||||
|
assert_eq!(res.err().unwrap().kind(), ErrorKind::NotFound);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn create_dir_all_with_junctions() {
|
fn create_dir_all_with_junctions() {
|
||||||
let tmpdir = tmpdir();
|
let tmpdir = tmpdir();
|
||||||
|
Loading…
Reference in New Issue
Block a user