2018-09-29 11:32:32 +08:00
|
|
|
package test
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/mgechev/revive/lint"
|
|
|
|
"github.com/mgechev/revive/rule"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestRangeValInClosure(t *testing.T) {
|
2024-11-11 13:39:10 +02:00
|
|
|
testRule(t, "range_val_in_closure", &rule.RangeValInClosureRule{}, &lint.RuleConfig{})
|
2018-09-29 11:32:32 +08:00
|
|
|
}
|
2024-09-20 16:09:24 +02:00
|
|
|
|
|
|
|
func TestRangeValInClosureAfterGo1_22(t *testing.T) {
|
2024-11-11 13:39:10 +02:00
|
|
|
testRule(t, "go1.22/range_val_in_closure", &rule.RangeValInClosureRule{}, &lint.RuleConfig{})
|
2024-09-20 16:09:24 +02:00
|
|
|
}
|