feat: Mark unused parameters with underscore, remove unused file, and add subscriber journey E2E tests

- Mark unused context and filter parameters with underscore in getCarrierMetrics, getGeoMetrics, and getPerformanceStats
- Remove unused RatePlanCurrencyIntegrator service from currency/services/rateplan_core.go
- Simplify ML model weight comparison in selection_test_ml.go by using literal values instead of originalWeights variable
- Add comprehensive subscriber_journey_test.go with full lifecycle
This commit is contained in:
nutcas3
2026-05-03 11:53:45 +03:00
parent b76a9a33ce
commit 40e87b1c97
6 changed files with 1378 additions and 215 deletions
@@ -135,7 +135,7 @@ func (s *Service) getUsageMetrics(ctx context.Context, filter *AnalyticsFilter)
return metrics, nil
}
func (s *Service) getCarrierMetrics(ctx context.Context, filter *AnalyticsFilter) (CarrierMetrics, error) {
func (s *Service) getCarrierMetrics(ctx context.Context, _ *AnalyticsFilter) (CarrierMetrics, error) {
metrics := CarrierMetrics{
ByCarrier: make(map[string]CarrierStat),
FailuresByReason: make(map[string]int64),
@@ -151,14 +151,14 @@ func (s *Service) getCarrierMetrics(ctx context.Context, filter *AnalyticsFilter
return metrics, nil
}
func (s *Service) getGeoMetrics(ctx context.Context, filter *AnalyticsFilter) (GeoMetrics, error) {
func (s *Service) getGeoMetrics(_ context.Context, _ *AnalyticsFilter) (GeoMetrics, error) {
metrics := GeoMetrics{
RevenueByContinent: make(map[string]float64),
}
return metrics, nil
}
func (s *Service) getPerformanceStats(ctx context.Context, filter *AnalyticsFilter) (PerformanceStats, error) {
func (s *Service) getPerformanceStats(_ context.Context, _ *AnalyticsFilter) (PerformanceStats, error) {
return PerformanceStats{
Uptime: 99.9,
ErrorRate: 0.1,