()
| 518 | |
| 519 | #[test] |
| 520 | fn test_global_buffer_pool() { |
| 521 | let buffer1 = get_pooled_buffer(); |
| 522 | let buffer2 = get_pooled_buffer(); |
| 523 | |
| 524 | // Both should come from the same global pool |
| 525 | assert!(buffer1.capacity() > 0); |
| 526 | assert!(buffer2.capacity() > 0); |
| 527 | |
| 528 | drop(buffer1); |
| 529 | drop(buffer2); |
| 530 | |
| 531 | let stats = global_buffer_pool().get_stats(); |
| 532 | assert!(stats.buffers_allocated >= 2); |
| 533 | } |
| 534 | |
| 535 | #[test] |
| 536 | fn test_config_from_env() { |
nothing calls this directly
no test coverage detected