MCPcopy Create free account
hub / github.com/apache/datafusion / test_disabled_disk_manager

Function test_disabled_disk_manager

datafusion/execution/src/disk_manager.rs:533–548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

531
532 #[test]
533 fn test_disabled_disk_manager() {
534 let manager = Arc::new(
535 DiskManagerBuilder::default()
536 .with_mode(DiskManagerMode::Disabled)
537 .build()
538 .unwrap(),
539 );
540 assert!(!manager.tmp_files_enabled());
541 assert_eq!(
542 manager
543 .create_tmp_file("Testing")
544 .unwrap_err()
545 .strip_backtrace(),
546 "Resources exhausted: Memory Exhausted while Testing (DiskManager is disabled)",
547 )
548 }
549
550 #[test]
551 fn test_disk_manager_create_spill_folder() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
buildMethod · 0.45
with_modeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…