Skip to content

Commit

Permalink
[pdatagen] Nit: correct anonymous func signature (#4801)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitryax authored Feb 3, 2022
1 parent 5470057 commit a7ef079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/internal/cmd/pdatagen/internal/base_slices.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ func Test${structName}_MoveAndAppendTo(t *testing.T) {
func Test${structName}_RemoveIf(t *testing.T) {
// Test RemoveIf on empty slice
emptySlice := New${structName}()
emptySlice.RemoveIf(func (el ${elementName}) bool {
emptySlice.RemoveIf(func(el ${elementName}) bool {
t.Fail()
return false
})
// Test RemoveIf
filtered := generateTest${structName}()
pos := 0
filtered.RemoveIf(func (el ${elementName}) bool {
filtered.RemoveIf(func(el ${elementName}) bool {
pos++
return pos%3 == 0
})
Expand Down

0 comments on commit a7ef079

Please sign in to comment.