aboutsummaryrefslogtreecommitdiff
path: root/src/util.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.rs')
-rw-r--r--src/util.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util.rs b/src/util.rs
new file mode 100644
index 0000000..2d2d911
--- /dev/null
+++ b/src/util.rs
@@ -0,0 +1,15 @@
+#[cfg(not(test))]
+macro_rules! use_dependency_history {
+ () => {
+ use $crate::dependency_history::DependencyHistory;
+ };
+}
+
+#[cfg(test)]
+macro_rules! use_dependency_history {
+ () => {
+ use $crate::dependency_history::MockDependencyHistory as DependencyHistory;
+ };
+}
+
+pub(crate) use use_dependency_history;