Expect objectid as a data category rather than a builtin

This commit is contained in:
lilleman
2026-08-27 23:20:57 +02:00
committed by lilleman-tw
parent 16f91503b0
commit c11ae5f04f
2 changed files with 5 additions and 2 deletions
+4
View File
@@ -72,7 +72,11 @@ func TestShippedMiscCategories(t *testing.T) {
f := newFakes(t, "data/misc", WithSeed(1))
v4 := regexp.MustCompile(`^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$`)
mac := regexp.MustCompile(`^([0-9a-f]{2}:){5}[0-9a-f]{2}$`)
objectid := regexp.MustCompile(`^[0-9a-f]{24}$`)
for i := 0; i < 200; i++ {
if v := fake(t, f, "objectid"); !objectid.MatchString(v) {
t.Fatalf("misc objectid %q is not 24 hex chars", v)
}
if v := fake(t, f, "uuid"); !v4.MatchString(v) {
t.Fatalf("misc uuid %q is not a valid v4", v)
}