test: expand backend coverage

This commit is contained in:
rcourtman 2026-01-25 21:08:44 +00:00
parent 3ea5f54d93
commit 7f7edfceb4
118 changed files with 21980 additions and 74 deletions

View file

@ -0,0 +1,17 @@
package api
import "testing"
func TestMultiTenantOrganizationLoader_NoPersistence(t *testing.T) {
loader := NewMultiTenantOrganizationLoader(nil)
if _, err := loader.GetOrganization("org"); err == nil {
t.Fatalf("expected error when persistence is nil")
}
}
func TestDefaultAuthorizationChecker_CanAccessOrg_Default(t *testing.T) {
checker := NewAuthorizationChecker(nil)
if !checker.CanAccessOrg("user", nil, "default") {
t.Fatalf("expected default org access")
}
}