()
| 434 | |
| 435 | #[test] |
| 436 | fn test_open_close() { |
| 437 | let mut error = GraphLiteErrorCode::Success; |
| 438 | let path = CString::new("/tmp/test_ffi_db").unwrap(); |
| 439 | |
| 440 | let db = unsafe { graphlite_open(path.as_ptr(), &mut error) }; |
| 441 | assert!(!db.is_null()); |
| 442 | assert_eq!(error, GraphLiteErrorCode::Success); |
| 443 | |
| 444 | unsafe { graphlite_close(db) }; |
| 445 | } |
| 446 | } |
nothing calls this directly
no test coverage detected