MCPcopy Create free account
hub / github.com/Recordscript/recordscript / test

Function test

libs/scrap/src/dxgi/mag.rs:641–648  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

639 use super::*;
640 #[test]
641 fn test() {
642 let mut capture_mag = CapturerMag::new((0, 0), 1920, 1080).unwrap();
643 capture_mag.exclude("", "RustDeskPrivacyWindow").unwrap();
644 std::thread::sleep(std::time::Duration::from_millis(1000 * 10));
645 let mut data = Vec::new();
646 capture_mag.frame(&mut data).unwrap();
647 println!("capture data len: {}", data.len());
648 }
649}

Callers

nothing calls this directly

Calls 3

sleepFunction · 0.85
excludeMethod · 0.45
frameMethod · 0.45

Tested by

no test coverage detected