From 4401182e6103d6ea35bcbc228711319298f5dbe8 Mon Sep 17 00:00:00 2001 From: dineshpinto Date: Sun, 17 Mar 2024 19:39:54 +0530 Subject: [PATCH] Increase test coverage --- src/validation.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/validation.rs b/src/validation.rs index 3ea62ea..1b478cb 100644 --- a/src/validation.rs +++ b/src/validation.rs @@ -73,7 +73,7 @@ mod tests { #[test] fn test_check_addresses() { let addresses = [ - "0x1", "0x2", "0x3", "0x4", "0x5", "0x6", "0x7", "0x8", "0x9", "0x10", + "0x1", "0x2", "0x3", "0x4", "0x5", "0x6", "0x7", "0x8", "0x9", "0x10", "0x11", ]; check_addresses(&addresses); } @@ -89,6 +89,14 @@ mod tests { let aggregate = 2; let timeframe = "day"; check_aggregate(&aggregate, timeframe); + + let aggregate = 5; + let timeframe = "hour"; + check_aggregate(&aggregate, timeframe); + + let aggregate = 10; + let timeframe = "minute"; + check_aggregate(&aggregate, timeframe); } #[test]