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

Function test_binary_loading

rust/tests/binary_view.rs:8–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7#[test]
8fn test_binary_loading() {
9 let _session = Session::new().expect("Failed to initialize session");
10 let out_dir = env!("OUT_DIR").parse::<PathBuf>().unwrap();
11 let view = binaryninja::load(out_dir.join("atox.obj")).expect("Failed to create view");
12 assert!(view.has_initial_analysis(), "No initial analysis");
13 assert_eq!(view.analysis_progress().state, AnalysisState::IdleState);
14 assert_eq!(view.file().is_analysis_changed(), true);
15 assert_eq!(view.file().is_database_backed(), false);
16}
17
18#[test]
19fn test_binary_saving() {

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
loadFunction · 0.50

Tested by

no test coverage detected