From 1e5482d864fb2779816551fa58bdfd62c79dfbbc Mon Sep 17 00:00:00 2001 From: Mahesh Bandara Wijerathna Date: Tue, 16 Apr 2024 03:47:09 +0530 Subject: [PATCH] [app_util] Add tests --- backend/src/app_util.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/backend/src/app_util.rs b/backend/src/app_util.rs index 0c9ac36..cea9331 100644 --- a/backend/src/app_util.rs +++ b/backend/src/app_util.rs @@ -86,3 +86,17 @@ pub async fn check_app_update() -> anyhow::Result { })) } } + +/************* + * Tests * + *************/ + +#[cfg(test)] +mod tests { + use super::is_container; + + #[test] + fn unit_is_container() { + assert!(!is_container()); + } +}