summaryrefslogtreecommitdiff
path: root/tests/bindings-ubm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bindings-ubm.rs')
-rw-r--r--tests/bindings-ubm.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/bindings-ubm.rs b/tests/bindings-ubm.rs
index 4c4aaa0..e4232d1 100644
--- a/tests/bindings-ubm.rs
+++ b/tests/bindings-ubm.rs
@@ -4,12 +4,17 @@
// there are a large number of them.
use regex::RegexBuilder;
-use std::collections::HashMap;
+use std::path::{Path, PathBuf};
use std::time::SystemTime;
+use std::{collections::HashMap, sync::Arc};
use subplot::{html::Location, Binding, Bindings, ScenarioStep, StepKind};
const N: i32 = 1000;
+fn path() -> Arc<Path> {
+ PathBuf::new().into()
+}
+
#[test]
fn bindings_microbenchmark() {
let time = SystemTime::now();
@@ -34,7 +39,7 @@ fn bindings_microbenchmark() {
let mut toadd = vec![];
for t in texts.iter() {
- toadd.push(Binding::new(StepKind::Given, t, false, HashMap::new(), None).unwrap());
+ toadd.push(Binding::new(StepKind::Given, t, false, HashMap::new(), None, path()).unwrap());
}
let created = time.elapsed().unwrap();