mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add new unit tests on ees and ers
This commit is contained in:
committed by
Dan Christian Bogos
parent
0bab7d5557
commit
2f9f07a976
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user