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:499–513  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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