Skip to content

Commit a3cf251

Browse files
alexdebrilRO-29
authored andcommitted
Fix redundant declaration
1 parent 4c7173a commit a3cf251

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mapping/mapper_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ func TestMapper(t *testing.T) {
119119
t.Fatal("should not raise an error")
120120
}
121121
mapper := NewMapper(mapping)
122-
compare(t, mapper, "ui", "1233", "user_id", "1233")
123-
compare(t, mapper, "oi", "1", "is_opted_in", "true")
124-
compare(t, mapper, "3", "1", "order_status", "processing")
122+
compareMappedData(t, mapper, "ui", "1233", "user_id", "1233")
123+
compareMappedData(t, mapper, "oi", "1", "is_opted_in", "true")
124+
compareMappedData(t, mapper, "3", "1", "order_status", "processing")
125125
}
126126

127-
func compare(t *testing.T, m *Mapper, col string, val string, wantedCol string, wantedVal string) {
127+
func compareMappedData(t *testing.T, m *Mapper, col string, val string, wantedCol string, wantedVal string) {
128128
fCol, fVal := getMappedData(m.Mapping, m.rules.toEvent, col, val)
129129
if fCol != wantedCol {
130130
t.Fatalf("wrong column: wanted %s, got %s", wantedCol, fCol)

0 commit comments

Comments
 (0)