mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
Add coverage tests on engine
This commit is contained in:
committed by
Dan Christian Bogos
parent
ea7313a0b6
commit
78bfc13d37
@@ -159,3 +159,15 @@ func TestPrepareMap(t *testing.T) {
|
||||
t.Errorf("PrepareMap() returned a non-nil result: %v", result)
|
||||
}
|
||||
}
|
||||
|
||||
func TestExportEvent(t *testing.T) {
|
||||
sqlEe := &SQLEe{
|
||||
db: nil,
|
||||
reqs: &concReq{},
|
||||
}
|
||||
err := sqlEe.ExportEvent(&sqlPosterRequest{}, "")
|
||||
if err != utils.ErrDisconnected {
|
||||
t.Errorf("Expected error %v, got %v", utils.ErrDisconnected, err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user