We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3caff8a commit a79e605Copy full SHA for a79e605
rust/tests/binary_view.rs
@@ -99,6 +99,16 @@ fn test_binary_view_strings() {
99
assert_eq!(str_15dc.length, 33);
100
}
101
102
+#[test]
103
+fn test_binary_tags() {
104
+ let _session = Session::new().expect("Failed to initialize session");
105
+ let out_dir = env!("OUT_DIR").parse::<PathBuf>().unwrap();
106
+ let view = binaryninja::load(out_dir.join("atox.obj")).expect("Failed to create view");
107
+ let tag_ty = view.create_tag_type("Test", "");
108
+ view.add_tag(0x0, &tag_ty, "t", false);
109
+ view.tag_type_by_name("Test").expect("Failed to get tag type");
110
+}
111
+
112
// These are the target files present in OUT_DIR
113
// Add the files to fixtures/bin
114
static TARGET_FILES: [&str; 2] = ["atox.obj", "atof.obj"];
0 commit comments