summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2023-12-27 17:37:27 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2023-12-27 17:38:43 +0000
commit439bbfe88e971bfa5f07a1faec8ff4a48bbeeb86 (patch)
tree52b0fc07d789e5d49bc52eef07c066b021834d9a /tests
parentd7d4a575e0d09e05928eba1180b49211149d49af (diff)
downloadsubplot-439bbfe88e971bfa5f07a1faec8ff4a48bbeeb86.tar.gz
bindings: Remember filename when loading bindings
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'tests')
-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();