chore: establish local platform baseline

This commit is contained in:
Codex Local
2026-08-26 06:41:54 +08:00
commit 29bdf4900f
575 changed files with 95644 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package saas
import (
"reflect"
"testing"
)
func TestNormalizeExportCategories(t *testing.T) {
actual, err := NormalizeExportCategories([]string{" profile ", "memories", "profile"})
if err != nil {
t.Fatal(err)
}
if !reflect.DeepEqual(actual, []string{"profile", "memories"}) {
t.Fatalf("categories = %#v", actual)
}
if _, err := NormalizeExportCategories([]string{"provider_credentials"}); err == nil {
t.Fatal("unsupported export category should fail")
}
}