MCPcopy Create free account
hub / github.com/erans/pgsqlite / test_no_constraint

Function test_no_constraint

src/validator/string_constraints.rs:312–321  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

setup_test_dbFunction · 0.70

Tested by

no test coverage detected