summaryrefslogtreecommitdiffstats
path: root/src/test_helpers
diff options
context:
space:
mode:
authorTim Oram <dev@mitmaro.ca>2024-02-15 09:59:46 -0330
committerTim Oram <dev@mitmaro.ca>2024-02-15 20:27:06 -0330
commit172cc18aadf7c30ac73bf05c46560d4e54e51e90 (patch)
tree597249189ccda5f0bf3d9fedded766c706e37305 /src/test_helpers
parent8c49085cbd27a0e6a124ea9ab63526b951e07b19 (diff)
Create test helper for Config::new
Diffstat (limited to 'src/test_helpers')
-rw-r--r--src/test_helpers/create_config.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test_helpers/create_config.rs b/src/test_helpers/create_config.rs
new file mode 100644
index 0000000..c4afd38
--- /dev/null
+++ b/src/test_helpers/create_config.rs
@@ -0,0 +1,5 @@
+use crate::config::Config;
+
+pub(crate) fn create_config() -> Config {
+ Config::new_with_config(None).unwrap()
+}