mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-23 08:08:45 +05:00
Added unit tests in utils
This commit is contained in:
committed by
Dan Christian Bogos
parent
fcffdd68a7
commit
f2e5c2f9c2
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user