summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-11-04 08:30:45 +0200
committerLars Wirzenius <liw@liw.fi>2023-11-04 10:10:45 +0200
commit6a8a210de12bb9e79d9d610a7ca091567dc9550a (patch)
tree470d7faaf9a02afb39439c27193edf0c0a45b6d4 /tests
parent7252cf5c1e0288b1bbb54908999fc7524d12bf1e (diff)
downloadsubplot-6a8a210de12bb9e79d9d610a7ca091567dc9550a.tar.gz
feat: generate library documentation from bindings files
Add a `doc` field to a binding. It's a string meant to contain markdown. Add subcommand `subplot libdocgen YAML -o MD` to read a bindings file and output a markdown file documenting the steps in the bindings file, and the type of captures, and the documentation for the step. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
Diffstat (limited to 'tests')
-rw-r--r--tests/bindings-ubm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bindings-ubm.rs b/tests/bindings-ubm.rs
index 9a1dbc5..4c4aaa0 100644
--- a/tests/bindings-ubm.rs
+++ b/tests/bindings-ubm.rs
@@ -34,7 +34,7 @@ fn bindings_microbenchmark() {
let mut toadd = vec![];
for t in texts.iter() {
- toadd.push(Binding::new(StepKind::Given, t, false, HashMap::new()).unwrap());
+ toadd.push(Binding::new(StepKind::Given, t, false, HashMap::new(), None).unwrap());
}
let created = time.elapsed().unwrap();