()
| 416 | |
| 417 | #[test] |
| 418 | fn test_version() { |
| 419 | let version_ptr = graphlite_version(); |
| 420 | assert!(!version_ptr.is_null()); |
| 421 | let version = unsafe { CStr::from_ptr(version_ptr) }; |
| 422 | assert_eq!(version.to_str().unwrap(), "0.1.0"); |
| 423 | } |
| 424 | |
| 425 | #[test] |
| 426 | fn test_null_pointer_handling() { |
nothing calls this directly
no test coverage detected