()
| 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() { |
nothing calls this directly
no test coverage detected