From 8fbf9ca9c0c32c600008dc6d85cacf84276736f8 Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Fri, 22 May 2026 15:44:53 -0400 Subject: Rust APIs for custom function lifters --- rust/tests/platform.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'rust/tests') diff --git a/rust/tests/platform.rs b/rust/tests/platform.rs index 36a04d7f..09022ec1 100644 --- a/rust/tests/platform.rs +++ b/rust/tests/platform.rs @@ -21,6 +21,17 @@ fn test_platform_types() { assert_ne!(platform_types.len(), 0); } +#[test] +fn test_platform_function_by_name() { + let _session = Session::new().expect("Failed to initialize session"); + let platform = Platform::by_name("windows-x86_64").expect("windows-x86_64 exists"); + let platform_functions = platform.functions(); + assert_ne!(platform_functions.len(), 0); + + let function = platform_functions.get(0); + assert!(platform.function_by_name(function.name, true).is_some()); +} + #[test] fn test_platform_calling_conventions() { let _session = Session::new().expect("Failed to initialize session"); -- cgit v1.3.1