MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / test_null_pointer_handling

Function test_null_pointer_handling

graphlite-ffi/src/lib.rs:426–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

424
425 #[test]
426 fn test_null_pointer_handling() {
427 let mut error = GraphLiteErrorCode::Success;
428
429 // Test null path
430 let db = unsafe { graphlite_open(ptr::null(), &mut error) };
431 assert!(db.is_null());
432 assert_eq!(error, GraphLiteErrorCode::NullPointer);
433 }
434
435 #[test]
436 fn test_open_close() {

Callers

nothing calls this directly

Calls 1

graphlite_openFunction · 0.85

Tested by

no test coverage detected