package domain import "testing" func TestEventStatus_Valid(t *testing.T) { tests := []struct { name string in EventStatus want bool }{ {"draft", EventStatusDraft, true}, {"published", EventStatusPublished, true}, {"closed", EventStatusClosed, true}, {"archived", EventStatusArchived, true}, {"empty", "", false}, {"unknown", "running", false}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got := tt.in.Valid(); got != tt.want { t.Errorf("Valid() = %v, want %v", got, tt.want) } }) } }