diff options
| author | Mason Reed <mason@vector35.com> | 2025-07-06 17:01:01 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-07-06 17:01:01 -0400 |
| commit | c953977c69ee829609debc0447fc09f3ff2b395b (patch) | |
| tree | b520593f7929e740cd492f3bef7f80dbe06c5cbd /rust/tests/interaction.rs | |
| parent | ecb8f071ca5f6e414e127e85ab660a4af052bebf (diff) | |
[Rust] Make `ReportCollection::add_*` optionally take a view
To allow for creating reports outside the context of a view
Diffstat (limited to 'rust/tests/interaction.rs')
| -rw-r--r-- | rust/tests/interaction.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/tests/interaction.rs b/rust/tests/interaction.rs index 5e9606b0..5b59a436 100644 --- a/rust/tests/interaction.rs +++ b/rust/tests/interaction.rs @@ -161,14 +161,14 @@ fn test_show_report_collection() { register_interaction_handler(MyInteractionHandler {}); let collection = ReportCollection::new(); - collection.add_text(&view, "title_report_0", "contents"); - collection.add_markdown(&view, "title_report_1", "# contents", "markdown_plain_text"); + collection.add_text(Some(&view), "title_report_0", "contents"); + collection.add_markdown(None, "title_report_1", "# contents", "markdown_plain_text"); collection.add_html( - &view, + None, "title_report_2", "<html>contents</html>", "html_plain_text", ); - collection.add_graph(&view, "title_report_3", &FlowGraph::new()); + collection.add_graph(None, "title_report_3", &FlowGraph::new()); collection.show("show_report_collection_title"); } |
