Add new unit tests on ees and ers

This commit is contained in:
armirveliaj
2024-08-07 09:28:29 -04:00
committed by Dan Christian Bogos
parent 0bab7d5557
commit 2f9f07a976
7 changed files with 324 additions and 0 deletions

View File

@@ -147,3 +147,15 @@ func TestOpenDBError3(t *testing.T) {
}
logger.Default = tmp
}
func TestPrepareMap(t *testing.T) {
sqlEe := &SQLEe{}
event := &utils.CGREvent{}
result, err := sqlEe.PrepareMap(event)
if err != nil {
t.Errorf("PrepareMap() returned an error: %v", err)
}
if result != nil {
t.Errorf("PrepareMap() returned a non-nil result: %v", result)
}
}