MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / missing_capture_is_none_not_error

Function missing_capture_is_none_not_error

atomic-agent/src/turn/capture.rs:497–511  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

495
496 #[test]
497 fn missing_capture_is_none_not_error() {
498 let dir = tempfile::TempDir::new().unwrap();
499 let session = make_session("sess-cap-2");
500 let verified = verify_capture(
501 dir.path(),
502 &session,
503 1,
504 "wc",
505 Some(&"b".repeat(40)),
506 Some("tree-index"),
507 0,
508 )
509 .unwrap();
510 assert!(verified.is_none(), "hook bypassed: no capture, no error");
511 }
512
513 #[test]
514 fn tampered_capture_fails_authentication() {

Callers

nothing calls this directly

Calls 4

verify_captureFunction · 0.85
make_sessionFunction · 0.70
unwrapMethod · 0.45
pathMethod · 0.45

Tested by

no test coverage detected