Files
zarinpal-analytics-backend/internal/analytics/service_test.go
Amirhossein Khalili d6de48fd15 fix: harden terminal-scoped analytics contracts
Keep JSON and bounded CSV exports on one canonical predicate, replace replayable offsets with encrypted tenant/filter-bound keyset cursors, and suppress merchant-grain peers under terminal scope. Validate period filters and align OpenAPI and capability specs with runtime behavior.
2026-08-20 21:29:18 +03:30

14 lines
312 B
Go

package analytics
import "testing"
func TestPeerComparisonSupported(t *testing.T) {
t.Parallel()
if peerComparisonSupported("T318") {
t.Fatal("peerComparisonSupported() = true for terminal scope")
}
if !peerComparisonSupported("") {
t.Fatal("peerComparisonSupported() = false for merchant scope")
}
}