chore: seed migration objects batch 19

This commit is contained in:
dev
2026-10-18 13:16:19 +08:00
parent 018a3673a3
commit ff8b216cc0
114 changed files with 50656 additions and 40 deletions
+21
View File
@@ -0,0 +1,21 @@
package fcm
import (
"testing"
"github.com/tinode/chat/server/store/types"
)
func TestTenantChannelName(t *testing.T) {
got := TenantChannelName(types.TenantID(42), "chnAbc")
if got != "tenant-42-chnAbc" {
t.Fatalf("TenantChannelName = %q", got)
}
}
func TestTenantChannelNameInvalidTenantFallsBack(t *testing.T) {
got := TenantChannelName(types.ZeroTenantID, "chnAbc")
if got != "chnAbc" {
t.Fatalf("TenantChannelName zero tenant = %q", got)
}
}