chore(repo): reinitialize repository

This commit is contained in:
2026-03-18 11:29:54 +08:00
commit 24871e213a
288 changed files with 44369 additions and 0 deletions
@@ -0,0 +1,20 @@
package dashboard
import (
"testing"
"inbox/internal/domain/role"
)
func TestPendingRolesForTopicReturnsEmptySliceWhenNoItems(t *testing.T) {
got := pendingRolesForTopic(nil, []role.Definition{
{Name: "leader", IsEnabled: true},
{Name: "worker", IsEnabled: true},
})
if got == nil {
t.Fatalf("expected empty slice, got nil")
}
if len(got) != 0 {
t.Fatalf("expected no pending roles, got %v", got)
}
}