diff options
| author | Brandon Miller <brandon@vector35.com> | 2026-05-22 15:44:53 -0400 |
|---|---|---|
| committer | Brandon Miller <brandon@vector35.com> | 2026-05-27 08:36:26 -0400 |
| commit | 8fbf9ca9c0c32c600008dc6d85cacf84276736f8 (patch) | |
| tree | dfac45c21a5ce7902cfedc96ecf4effdf4808832 /rust/tests | |
| parent | 8bb4ab351a7a0f371ca758ed82ca50085e6c50fd (diff) | |
Rust APIs for custom function lifters
Diffstat (limited to 'rust/tests')
| -rw-r--r-- | rust/tests/platform.rs | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ -22,6 +22,17 @@ fn test_platform_types() { } #[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"); let platform = Platform::by_name("windows-x86_64").expect("windows-x86_64 exists"); |
