Prepare verified laboratory 6 implementation and evidence

This commit is contained in:
rey
2026-11-17 17:32:06 +03:00
parent 470d9d6f1e
commit 7d56e52fd0
335 changed files with 31206 additions and 72 deletions
@@ -0,0 +1,13 @@
package model
import "testing"
func TestRejectsNULInPersistedText(t *testing.T) {
for _, field := range []string{"display_name", "title", "text"} {
t.Run(field, func(t *testing.T) {
if err := requireText(field, "a\x00b", 1, 4000); err == nil {
t.Fatal("PostgreSQL text must reject NUL as a validation error")
}
})
}
}