sync: 同步 v1.0.4 并脱敏配置与镜像

This commit is contained in:
MiFaZhan
2026-10-29 14:36:49 +08:00
parent 743e8e6e6e
commit 2206a393f7
516 changed files with 18119 additions and 2253 deletions
@@ -0,0 +1,13 @@
package cardpackage
import "testing"
func TestCardPackageBindChunkSizeSupportsFiftyThousandCards(t *testing.T) {
const totalCards = 50000
if cardPackageBindInsertBatchSize <= 0 || cardPackageBindInsertBatchSize > 500 {
t.Fatalf("cardPackageBindInsertBatchSize = %d, want 1..500", cardPackageBindInsertBatchSize)
}
if chunks := (totalCards + cardPackageBindInsertBatchSize - 1) / cardPackageBindInsertBatchSize; chunks != 100 {
t.Fatalf("bind insert chunks = %d, want 100", chunks)
}
}