summaryrefslogtreecommitdiff
path: root/rust/tests/binary_view.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2026-02-22 17:08:21 -0800
committerMason Reed <35282038+emesare@users.noreply.github.com>2026-02-23 00:09:44 -0800
commitb18bdad6c94a8e234108d531f0c480c7104abebe (patch)
treeb0edb86cfae52c37635ef0b5cac491220bc3ef24 /rust/tests/binary_view.rs
parentdbd54d67a6d523f64615f653d82d8224cd09870a (diff)
[Rust] Misc documentation and cleanup
Diffstat (limited to 'rust/tests/binary_view.rs')
-rw-r--r--rust/tests/binary_view.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/rust/tests/binary_view.rs b/rust/tests/binary_view.rs
index 7a0a3299..11caf3d0 100644
--- a/rust/tests/binary_view.rs
+++ b/rust/tests/binary_view.rs
@@ -3,6 +3,7 @@ use binaryninja::binary_view::{
AnalysisProgress, AnalysisState, BinaryViewBase, BinaryViewExt, StringType,
};
use binaryninja::data_buffer::DataBuffer;
+use binaryninja::file_metadata::SaveSettings;
use binaryninja::function::{Function, FunctionViewType};
use binaryninja::headless::Session;
use binaryninja::main_thread::execute_on_main_thread_and_wait;
@@ -69,7 +70,9 @@ fn test_binary_saving_database() {
// Save the modified database.
let temp_dir = tempfile::tempdir().expect("Failed to create temporary directory");
let temp_path = temp_dir.path().join("atox.obj.bndb");
- assert!(view.file().create_database(&temp_path));
+ assert!(view
+ .file()
+ .create_database(&temp_path, &SaveSettings::new()));
// Verify that the file exists and is modified.
let new_view = binaryninja::load(temp_path).expect("Failed to load new view");
let new_entry_function = new_view