@@ -202,7 +202,6 @@ c 10:200 rwm`,
202202}
203203
204204for _ ,test := range tests {
205- test := test // capture range variable
206205t .Run (test .name ,func (t * testing.T ) {
207206list := bytes .NewBufferString (test .list )
208207emu ,err := emulatorFromList (list )
@@ -741,7 +740,6 @@ func testDeviceEmulatorApply(t *testing.T, baseDefaultAllow bool) {
741740}
742741
743742for _ ,test := range tests {
744- test := test
745743t .Run (test .name ,func (t * testing.T ) {
746744err := test .base .Apply (test .rule )
747745if err != nil && test .expected != nil {
@@ -1058,7 +1056,6 @@ func testDeviceEmulatorTransition(t *testing.T, sourceDefaultAllow bool) {
10581056}
10591057
10601058for _ ,test := range tests {
1061- test := test
10621059t .Run (test .name ,func (t * testing.T ) {
10631060// If we are in black-list mode, we need to prepend the relevant
10641061// clear-all rule (the expected rule lists are written with
@@ -1130,7 +1127,7 @@ c 10:200 rwm`
11301127
11311128var r * deviceRule
11321129var err error
1133- for i := 0 ; i < b . N ; i ++ {
1130+ for b . Loop () {
11341131s := bufio .NewScanner (strings .NewReader (list ))
11351132for s .Scan () {
11361133line := s .Text ()