mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Add new unit tests on engine && config
This commit is contained in:
committed by
Dan Christian Bogos
parent
2f05395ec1
commit
51e376d59b
@@ -394,3 +394,19 @@ func TestGetTPTrends(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewURLCSVStorage(t *testing.T) {
|
||||
sep := ','
|
||||
dataPath := "http://cgrates.com/destinations.csv;http://cgrates.com/timings.csv;http://cgrates.com/invalidpath"
|
||||
|
||||
csvStorage := NewURLCSVStorage(sep, dataPath)
|
||||
|
||||
if csvStorage == nil {
|
||||
t.Fatal("Expected csvStorage to be initialized, but got nil")
|
||||
}
|
||||
|
||||
if csvStorage.generator == nil {
|
||||
t.Fatal("Expected csvStorage.generator to be initialized, but got nil")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user