diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2023-08-12 10:36:10 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2023-08-12 10:36:10 +0100 |
commit | 1646f8cbc8191d7e7a68abb0a99090b55b069097 (patch) | |
tree | ca4aa2e555a7cb6604d637d6717efdf20b298af3 /tests | |
parent | f6093a207f7f46eb547d90f2bb20113a9b009028 (diff) | |
download | subplot-1646f8cbc8191d7e7a68abb0a99090b55b069097.tar.gz |
steps: Pass location information into scenarios and scenario steps for error messages
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bindings-ubm.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/bindings-ubm.rs b/tests/bindings-ubm.rs index 0ee59e5..9a1dbc5 100644 --- a/tests/bindings-ubm.rs +++ b/tests/bindings-ubm.rs @@ -6,7 +6,7 @@ use regex::RegexBuilder; use std::collections::HashMap; use std::time::SystemTime; -use subplot::{Binding, Bindings, ScenarioStep, StepKind}; +use subplot::{html::Location, Binding, Bindings, ScenarioStep, StepKind}; const N: i32 = 1000; @@ -43,7 +43,12 @@ fn bindings_microbenchmark() { bindings.add(binding); } let added = time.elapsed().unwrap(); - let step = ScenarioStep::new(StepKind::Given, "given", &format!("step {}", N - 1)); + let step = ScenarioStep::new( + StepKind::Given, + "given", + &format!("step {}", N - 1), + Location::Unknown, + ); bindings.find("", &step).unwrap(); let found = time.elapsed().unwrap(); |