summaryrefslogtreecommitdiffstats
path: root/src/shims
diff options
context:
space:
mode:
Diffstat (limited to 'src/shims')
-rw-r--r--src/shims/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shims/mod.rs b/src/shims/mod.rs
index debcd19..67c6640 100644
--- a/src/shims/mod.rs
+++ b/src/shims/mod.rs
@@ -141,6 +141,13 @@ pub fn invocations(dir: &Path) -> Vec<serde_json::Value> {
}
}
+/// How many times the shim recorded `tool` being called with `needle` in its
+/// arguments.
+///
+/// Test-tier only. The shim *writes* the invocation log in production — that is
+/// how a fake tool leaves evidence — but nothing in the crate reads it back;
+/// only tests ask what a build actually did.
+#[cfg(feature = "test-support")]
pub fn called_with(dir: &Path, tool: &str, needle: &str) -> usize {
invocations(dir)
.iter()