Added unit tests in utils

This commit is contained in:
nickolasdaniel
2021-05-12 15:56:25 +03:00
committed by Dan Christian Bogos
parent fcffdd68a7
commit f2e5c2f9c2
6 changed files with 431 additions and 0 deletions

View File

@@ -1371,3 +1371,11 @@ func TestCoreUtilsGenerateDBItemOpts(t *testing.T) {
}
}
}
func TestSliceStringPointer(t *testing.T) {
sliceTest := []string{"ELEMENT_1", "ELEMENT_2"}
rcv := SliceStringPointer(sliceTest)
if fmt.Sprintf("%T", rcv) != "*[]string" {
t.Error("Could not convert to pointer slice")
}
}