From 80803522770cb33e943ef3700af1bda5e4874897 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Tue, 25 Jul 2023 17:02:31 +0100 Subject: [PATCH] add stub for testing feed::find --- src/feed/find.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/feed/find.rs b/src/feed/find.rs index b735e05..c60dbc9 100644 --- a/src/feed/find.rs +++ b/src/feed/find.rs @@ -18,3 +18,15 @@ pub fn find(site: &str, channel_name: &str) -> Result { .to_string(); Ok(rss_url) } + +#[cfg(test)] +mod tests { + use super::*; + #[test] + fn finds_rss_url() -> Result<()> { + // TODO: need to inject wrapper for reqwest::blocking::get + // + // todo!(); + Ok(()) + } +}