Skip to content

Commit

Permalink
Add coverage tests for engine
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolasPetriti authored and danbogos committed Aug 9, 2023
1 parent e90ef03 commit 6779cdf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions engine/libsuppliers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -851,9 +851,9 @@ func TestPopulateSortingDataStatMetrics(t *testing.T) {

func TestLibSuppliersSupplierIDs(t *testing.T) {
sSpls := &SortedSuppliers{
ProfileID: str,
Sorting: str,
Count: nm,
ProfileID: str,
Sorting: str,
Count: nm,
SortedSuppliers: []*SortedSupplier{
{
SupplierID: str,
Expand Down Expand Up @@ -882,7 +882,7 @@ func TestLibSupplierAsNavigableMap(t *testing.T) {
exp := utils.NavigableMap2{
"SupplierID": utils.NewNMData(ss.SupplierID),
"SupplierParameters": utils.NewNMData(ss.SupplierParameters),
"SortingData": utils.NavigableMap2{str: utils.NewNMData(str)},
"SortingData": utils.NavigableMap2{str: utils.NewNMData(str)},
}

if !reflect.DeepEqual(rcv, exp) {
Expand All @@ -892,9 +892,9 @@ func TestLibSupplierAsNavigableMap(t *testing.T) {

func TestLibSuppliersAsNavigableMap(t *testing.T) {
sSpls := &SortedSuppliers{
ProfileID: str,
Sorting: str,
Count: nm,
ProfileID: str,
Sorting: str,
Count: nm,
SortedSuppliers: []*SortedSupplier{
{
SupplierID: str,
Expand All @@ -906,9 +906,9 @@ func TestLibSuppliersAsNavigableMap(t *testing.T) {

rcv := sSpls.AsNavigableMap()
exp := utils.NavigableMap2{
"ProfileID": utils.NewNMData(sSpls.ProfileID),
"Sorting": utils.NewNMData(sSpls.Sorting),
"Count": utils.NewNMData(sSpls.Count),
"ProfileID": utils.NewNMData(sSpls.ProfileID),
"Sorting": utils.NewNMData(sSpls.Sorting),
"Count": utils.NewNMData(sSpls.Count),
"SortedSuppliers": &utils.NMSlice{sSpls.SortedSuppliers[0].AsNavigableMap()},
}

Expand Down

0 comments on commit 6779cdf

Please sign in to comment.