mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Added more Clone functions for config sections
This commit is contained in:
committed by
Dan Christian Bogos
parent
2b19127d05
commit
c539800acd
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user