MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / test_workflow_clone

Function test_workflow_clone

rust/tests/workflow.rs:9–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8#[test]
9fn test_workflow_clone() {
10 let _session = Session::new().expect("Failed to initialize session");
11 let original_workflow = Workflow::new("core.function.baseAnalysis");
12 let mut cloned_workflow = original_workflow.clone_to("clone_workflow");
13
14 assert_eq!(cloned_workflow.name().as_str(), "clone_workflow");
15 assert_eq!(
16 cloned_workflow.configuration(),
17 original_workflow.configuration()
18 );
19
20 cloned_workflow = original_workflow.clone_to("");
21 assert_eq!(
22 cloned_workflow.name().as_str(),
23 "core.function.baseAnalysis"
24 );
25}
26
27#[test]
28fn test_workflow_registration() {

Callers

nothing calls this directly

Calls 1

clone_toMethod · 0.80

Tested by

no test coverage detected