()
| 310 | |
| 311 | #[test] |
| 312 | fn test_no_constraint() { |
| 313 | let validator = StringConstraintValidator::new(); |
| 314 | let conn = setup_test_db(); |
| 315 | |
| 316 | // No constraints loaded |
| 317 | validator.load_table_constraints(&conn, "users").unwrap(); |
| 318 | |
| 319 | // Should always pass validation |
| 320 | assert!(validator.validate_value("users", "name", "Any length string should be OK").is_ok()); |
| 321 | } |
| 322 | |
| 323 | #[test] |
| 324 | fn test_cache_invalidation() { |
nothing calls this directly
no test coverage detected