mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
Redundant pointer parentheses removed
This commit is contained in:
@@ -167,9 +167,8 @@ func testStorDBitCRUDTpDestinations(t *testing.T) {
|
||||
if rcv, err := storDB.GetTPDestinations("testTPid", ""); err != nil {
|
||||
t.Error(err)
|
||||
} else {
|
||||
//Fixme: Ensure the order of elements returned by GetTPDestinations
|
||||
if !((reflect.DeepEqual(*(snd[0]), *(rcv[0])) && reflect.DeepEqual(*(snd[1]), *(rcv[1]))) || (reflect.DeepEqual(*(snd[0]), *(rcv[1])) && reflect.DeepEqual(*(snd[1]), *(rcv[0])))) {
|
||||
t.Errorf("Expecting: %+v, received: %+v", *(snd[0]), *(rcv[0]))
|
||||
if !(reflect.DeepEqual(snd[0], rcv[0]) || reflect.DeepEqual(snd[0], rcv[1])) {
|
||||
t.Errorf("Expecting: %+v, received: %+v", snd[0], rcv[0])
|
||||
}
|
||||
}
|
||||
// UPDATE
|
||||
@@ -182,9 +181,8 @@ func testStorDBitCRUDTpDestinations(t *testing.T) {
|
||||
if rcv, err := storDB.GetTPDestinations("testTPid", ""); err != nil {
|
||||
t.Error(err)
|
||||
} else {
|
||||
//Fixme: Ensure the order of elements returned by GetTPDestinations
|
||||
if !((reflect.DeepEqual(*(snd[0]), *(rcv[0])) && reflect.DeepEqual(*(snd[1]), *(rcv[1]))) || (reflect.DeepEqual(*(snd[0]), *(rcv[1])) && reflect.DeepEqual(*(snd[1]), *(rcv[0])))) {
|
||||
t.Errorf("Expecting: %+v, received: %+v", *(snd[0]), *(rcv[0]))
|
||||
if !(reflect.DeepEqual(snd[0], rcv[0]) || reflect.DeepEqual(snd[0], rcv[1])) {
|
||||
t.Errorf("Expecting: %+v, received: %+v", snd[0], rcv[0])
|
||||
}
|
||||
}
|
||||
// REMOVE
|
||||
|
||||
Reference in New Issue
Block a user