mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add && revise new unit tests on rankings
This commit is contained in:
committed by
Dan Christian Bogos
parent
90ec7d15a2
commit
05baa9fd86
@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
|
||||
package engine
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
@@ -285,21 +284,3 @@ func TestRankingDescSorterEmptyStatIDs(t *testing.T) {
|
||||
t.Errorf("expected sortedStatIDs to be empty, got %v", sortedStatIDs)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRankingSortStats(t *testing.T) {
|
||||
sortingType := "sorting"
|
||||
sortingParams := []string{"param1", "param2"}
|
||||
Metrics := map[string]map[string]float64{
|
||||
|
||||
"STATS1": {"*acc": 12.1, "*tcc": 24.2},
|
||||
"STATS2": {"*acc": 12.1, "*tcc": 24.3},
|
||||
"STATS3": {"*acc": 10.1, "*tcc": 25.3},
|
||||
}
|
||||
|
||||
_, err := rankingSortStats(sortingType, sortingParams, Metrics)
|
||||
|
||||
if err != nil {
|
||||
errors.New("NOT_IMPLEMENTED:sorting")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user