i5-add-tests (part 4) #10
1 changed files with 4 additions and 0 deletions
|
@ -69,6 +69,10 @@ pub fn mock_file_open(real_paths: Vec<String>) -> FileOpenFn {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn mock_network_download_as_mp3() -> NetworkDownloadAsMp3Fn {
|
||||||
|
Box::new(|_url| Ok(()))
|
||||||
|
}
|
||||||
|
|
||||||
pub fn stub_network_fetch_as_bytes() -> NetworkFetchAsBytesFn {
|
pub fn stub_network_fetch_as_bytes() -> NetworkFetchAsBytesFn {
|
||||||
Box::new(|url: &str| {
|
Box::new(|url: &str| {
|
||||||
Err(Error::message(
|
Err(Error::message(
|
||||||
|
|
Loading…
Add table
Reference in a new issue