Started to add a path sanitization

This commit is contained in:
porosnicuadrian
2021-04-02 17:58:37 +03:00
committed by Dan Christian Bogos
parent f6ea7dc525
commit a7a2eba62c
5 changed files with 116 additions and 39 deletions

View File

@@ -378,8 +378,10 @@ func TestAppend2(t *testing.T) {
dn.Slice = nil
dn.Map = map[string]*DataNode{}
if _, err := dn.Append(testPath, val1); err != nil {
if rcv, err := dn.Append(testPath, val1); err != nil {
t.Error(err)
} else if rcv != 0 {
t.Errorf("Expected %+v, received %+v", 0, rcv)
}
///