()
| 1992 | |
| 1993 | #[test] |
| 1994 | fn test_validate_session_id_too_long() { |
| 1995 | let long_id = "a".repeat(256); |
| 1996 | let err = validate_session_id(&long_id).unwrap_err(); |
| 1997 | assert!(matches!(err, AgentError::SessionIdInvalid { .. })); |
| 1998 | } |
| 1999 | |
| 2000 | #[test] |
| 2001 | fn test_validate_session_id_unicode_length_error_does_not_slice_a_codepoint() { |
nothing calls this directly
no test coverage detected