Added more Clone functions for config sections

This commit is contained in:
Trial97
2020-11-24 17:31:09 +02:00
committed by Dan Christian Bogos
parent 2b19127d05
commit c539800acd
121 changed files with 1399 additions and 746 deletions

View File

@@ -958,7 +958,7 @@ func TestParseHierarchyClone(t *testing.T) {
eHP := HierarchyPath([]string{"Root", "CGRateS"})
rcv := eHP.Clone()
if !reflect.DeepEqual(eHP, rcv) {
t.Errorf("\nExpected: %+v\nReceived: %+v", ToJSON(eHP), ToJSON(rcv))
t.Errorf("Expected: %+v\nReceived: %+v", ToJSON(eHP), ToJSON(rcv))
}
if rcv[0] = ""; eHP[0] != "Root" {
t.Errorf("Expected clone to not modify the cloned")
@@ -966,7 +966,7 @@ func TestParseHierarchyClone(t *testing.T) {
eHP = nil
rcv = eHP.Clone()
if !reflect.DeepEqual(eHP, rcv) {
t.Errorf("\nExpected: %+v\nReceived: %+v", ToJSON(eHP), ToJSON(rcv))
t.Errorf("Expected: %+v\nReceived: %+v", ToJSON(eHP), ToJSON(rcv))
}
}