From 5677f93ff8e0f212be112a110fcfe09663c84f98 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Wed, 21 Dec 2022 11:31:04 +0100 Subject: model: change flags array to bitmask Using a list of integers is not optimal. Use a bit mask instead. Signed-off-by: Robin Jarry Acked-by: Tim Culverhouse --- worker/lib/parse_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'worker/lib/parse_test.go') diff --git a/worker/lib/parse_test.go b/worker/lib/parse_test.go index 227b121e..4bf95431 100644 --- a/worker/lib/parse_test.go +++ b/worker/lib/parse_test.go @@ -72,9 +72,9 @@ func newMockRawMessageFromPath(p string) *mockRawMessage { func (m *mockRawMessage) NewReader() (io.ReadCloser, error) { return os.Open(m.path) } -func (m *mockRawMessage) ModelFlags() ([]models.Flag, error) { return nil, nil } -func (m *mockRawMessage) Labels() ([]string, error) { return nil, nil } -func (m *mockRawMessage) UID() uint32 { return 0 } +func (m *mockRawMessage) ModelFlags() (models.Flags, error) { return 0, nil } +func (m *mockRawMessage) Labels() ([]string, error) { return nil, nil } +func (m *mockRawMessage) UID() uint32 { return 0 } func die(err error) { if err != nil { -- cgit