mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Fixed indetation
This commit is contained in:
committed by
Dan Christian Bogos
parent
710dafad8e
commit
4aae1cdcb1
@@ -286,6 +286,13 @@ func TestMultiplyConverterConvert(t *testing.T) {
|
||||
} else if !reflect.DeepEqual(rcv, 0.0) {
|
||||
t.Errorf("Expected %+v received: %+v", 0, rcv)
|
||||
}
|
||||
|
||||
m.Value = 2
|
||||
if rcv, err := m.Convert(3); err != nil {
|
||||
t.Error(err)
|
||||
} else if !reflect.DeepEqual(rcv, 6.0) {
|
||||
t.Errorf("Expected %+v received: %+v", 0, rcv)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNewDivideConverter(t *testing.T) {
|
||||
|
||||
@@ -60,7 +60,7 @@ func MissingStructFields(s interface{}, mandatories []string) []string {
|
||||
sType := sValue.Type()
|
||||
for _, fieldName := range mandatories {
|
||||
fldStr, ok := sType.FieldByName(fieldName)
|
||||
if !ok || fieldByIndexIsEmpty(sValue, fldStr.Index){
|
||||
if !ok || fieldByIndexIsEmpty(sValue, fldStr.Index) {
|
||||
missing = append(missing, fieldName)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user