coverage tests at engine

This commit is contained in:
gezimbll
2022-11-01 11:19:07 -04:00
committed by Dan Christian Bogos
parent 8848bb6898
commit d795283c20
3 changed files with 430 additions and 2 deletions

View File

@@ -749,7 +749,10 @@ func TestCDRNewCDRFromSQL(t *testing.T) {
} else if !reflect.DeepEqual(cdr, eCDR) {
t.Errorf("Expecting: %+v, received: %+v", cdr, eCDR)
}
cdrSQL.ExtraFields = "extrafield"
if _, err := NewCDRFromSQL(cdrSQL); err == nil {
t.Error(err)
}
}
func TestCDRAsCGREvent(t *testing.T) {