i5-add-tests (part 4) #10

Merged
kemitix merged 39 commits from i5-add-tests into main 2023-08-05 06:50:01 +01:00
Showing only changes of commit 5ab011438e - Show all commits

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(