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
4a886761bc
commit
2ce9c97d28
@@ -125,11 +125,13 @@ func TestCmdParseLocalExecuteCase5(t *testing.T) {
|
||||
// for coverage purpose
|
||||
testStruct := &CmdParse{
|
||||
rpcParams: &AttrParse{
|
||||
Expression: "~test_exp",
|
||||
Value: "~test_value",
|
||||
Expression: "~*req.Field{*duration}",
|
||||
Value: "a",
|
||||
},
|
||||
}
|
||||
|
||||
testStruct.LocalExecute()
|
||||
|
||||
expected := "time: invalid duration \"a\""
|
||||
received := testStruct.LocalExecute()
|
||||
if !reflect.DeepEqual(received, expected) {
|
||||
t.Errorf("Expected <%+v>, Received <%+v>", expected, received)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user