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

Function test_background_task_progress

rust/tests/background_task.rs:36–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35#[test]
36fn test_background_task_progress() {
37 let _session = Session::new().expect("Failed to initialize session");
38 let task = BackgroundTask::new("test progress", false);
39 let first_progress = task.progress_text().to_string();
40 assert_eq!(first_progress, "test progress");
41 task.set_progress_text("new progress");
42 let second_progress = task.progress_text().to_string();
43 assert_eq!(second_progress, "new progress");
44 task.finish();
45}

Callers

nothing calls this directly

Calls 3

progress_textMethod · 0.80
set_progress_textMethod · 0.80
finishMethod · 0.45

Tested by

no test coverage detected