Files
kandev/apps/backend/internal/db/sqlguard/exemptions_test.go
T
2026-09-07 19:28:31 +01:00

18 lines
384 B
Go

package sqlguard
import (
"path/filepath"
"testing"
)
func TestLoadExemptions(t *testing.T) {
path := filepath.Join("testdata", "exemptions.json")
exemptions, err := LoadExemptions(path)
if err != nil {
t.Fatalf("LoadExemptions() error = %v", err)
}
if len(exemptions) != 1 || exemptions[0].Rule != RuleSQLiteCatalog {
t.Fatalf("LoadExemptions() = %#v", exemptions)
}
}