Discovery audit confirmed item_people.kind is unconstrained smallint with values 1-6 in use. Reserve 7 = Author, 8 = Narrator for audiobook people-links written by the upcoming scanner branches. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
19 lines
360 B
Go
19 lines
360 B
Go
package models
|
|
|
|
import "testing"
|
|
|
|
func TestPersonKindAudiobookRoles(t *testing.T) {
|
|
cases := []struct {
|
|
kind PersonKind
|
|
want string
|
|
}{
|
|
{PersonKindAuthor, "Author"},
|
|
{PersonKindNarrator, "Narrator"},
|
|
}
|
|
for _, tc := range cases {
|
|
if got := tc.kind.String(); got != tc.want {
|
|
t.Errorf("%d.String() = %q, want %q", tc.kind, got, tc.want)
|
|
}
|
|
}
|
|
}
|