mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Removed Float64SlicePointer
This commit is contained in:
@@ -454,10 +454,6 @@ func BoolPointer(b bool) *bool {
|
||||
return &b
|
||||
}
|
||||
|
||||
func Float64SlicePointer(slc []float64) *[]float64 {
|
||||
return &slc
|
||||
}
|
||||
|
||||
func StringMapPointer(sm StringMap) *StringMap {
|
||||
return &sm
|
||||
}
|
||||
|
||||
@@ -685,15 +685,6 @@ func TestBoolPointer(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestFloat64SlicePointer(t *testing.T) {
|
||||
t1 := []float64{1.2, 12.3, 123.4, 1234.5}
|
||||
expected := &t1
|
||||
result := Float64SlicePointer(t1)
|
||||
if *result == nil {
|
||||
t.Error("Expected:", expected, ", received: nil")
|
||||
}
|
||||
}
|
||||
|
||||
func TestStringMapPointer(t *testing.T) {
|
||||
t1 := map[string]bool{"cgr1": true, "cgr2": true}
|
||||
expected := &t1
|
||||
|
||||
Reference in New Issue
Block a user