mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-12-01 08:18:47 +00:00
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:
@@ -38,11 +38,9 @@ func TestMachineLearningModel(t *testing.T) {
|
||||
|
||||
// Check that weights have been optimized
|
||||
optimizedWeights := mlModel.GetOptimizedWeights()
|
||||
originalWeights := WeightVector{Performance: 0.3, Reliability: 0.3, Cost: 0.2, Region: 0.1, Capability: 0.1}
|
||||
|
||||
// Weights should have changed from original
|
||||
if optimizedWeights.Performance == originalWeights.Performance &&
|
||||
optimizedWeights.Reliability == originalWeights.Reliability {
|
||||
// Weights should have changed from original defaults (0.3, 0.3, 0.2, 0.1, 0.1)
|
||||
if optimizedWeights.Performance == 0.3 && optimizedWeights.Reliability == 0.3 {
|
||||
t.Error("Expected weights to change after learning")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user