added mock_network_download_as_mp3

This commit is contained in:
Paul Campbell 2023-08-04 07:47:54 +01:00
parent e44da378c6
commit 5ab011438e

View file

@ -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 {
Box::new(|url: &str| {
Err(Error::message(