mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Coverage tests in console
This commit is contained in:
committed by
Dan Christian Bogos
parent
c8d0ee6045
commit
ac5ad43ddb
@@ -51,4 +51,11 @@ func TestCmdMaxUsage(t *testing.T) {
|
||||
if err := command.PostprocessRpcParams(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
expected := []string{utils.ToR, utils.RequestType, utils.Tenant,
|
||||
utils.Category, utils.AccountField, utils.Subject, utils.Destination,
|
||||
utils.SetupTime, utils.AnswerTime, utils.Usage, utils.ExtraFields}
|
||||
|
||||
if !reflect.DeepEqual(command.ClientArgs(), expected) {
|
||||
t.Errorf("Expected <%+v>, Received <%+v>", expected, command.ClientArgs())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user