MCPcopy Create free account
hub / github.com/erans/pgsqlite / test_buffer_pool_creation

Function test_buffer_pool_creation

src/protocol/buffer_pool.rs:401–408  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399
400 #[test]
401 fn test_buffer_pool_creation() {
402 let pool = BufferPool::new();
403 let stats = pool.get_stats();
404
405 assert_eq!(stats.buffers_allocated, 0);
406 assert_eq!(stats.buffers_reused, 0);
407 assert_eq!(stats.current_pool_size, 0);
408 }
409
410 #[test]
411 fn test_buffer_allocation_and_reuse() {

Callers

nothing calls this directly

Calls 1

get_statsMethod · 0.45

Tested by

no test coverage detected