()
| 446 | |
| 447 | #[test] |
| 448 | fn allows_write_by_status() { |
| 449 | let mut ctx = AuthContext::from_identity(&test_identity(), "s_test_008".into()); |
| 450 | assert!(ctx.allows_write()); // Active |
| 451 | |
| 452 | ctx.status = AuthStatus::ReadOnly; |
| 453 | assert!(!ctx.allows_write()); |
| 454 | |
| 455 | ctx.status = AuthStatus::Restricted; |
| 456 | assert!(ctx.allows_write()); |
| 457 | } |
| 458 | |
| 459 | #[test] |
| 460 | fn auth_status_display_roundtrip() { |
nothing calls this directly
no test coverage detected