Coverage tests for utils

This commit is contained in:
nickolasdaniel
2021-04-02 14:11:40 +03:00
committed by Dan Christian Bogos
parent 323046e416
commit 4d568cb498
4 changed files with 59 additions and 5 deletions

View File

@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>
package utils
import (
"fmt"
"reflect"
"regexp"
"strings"
@@ -378,13 +377,10 @@ func TestAppend2(t *testing.T) {
dn.Type = NMMapType
dn.Slice = nil
dn.Map = map[string]*DataNode{}
dnExpect := NewDataNode(testPath)
if _, err := dn.Append(testPath, val1); err != nil {
t.Error(err)
}
fmt.Println(ToJSON(dn.Map["0"]))
fmt.Println(ToJSON(dnExpect))
///
dn.Type = NMSliceType