1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-24 08:32:22 +02:00
revive/test/max_control_nesting_test.go

19 lines
418 B
Go
Raw Normal View History

2024-01-28 13:22:41 +02:00
package test
import (
"testing"
"github.com/mgechev/revive/lint"
"github.com/mgechev/revive/rule"
)
func TestMaxControlNestingDefault(t *testing.T) {
testRule(t, "max_control_nesting_default", &rule.MaxControlNestingRule{}, &lint.RuleConfig{})
}
2024-01-28 13:22:41 +02:00
func TestMaxControlNesting(t *testing.T) {
testRule(t, "max_control_nesting", &rule.MaxControlNestingRule{}, &lint.RuleConfig{
2024-01-28 13:22:41 +02:00
Arguments: []any{int64(2)}},
)
}