mirror of
https://github.com/mgechev/revive.git
synced 2024-11-21 17:16:40 +02:00
19 lines
418 B
Go
19 lines
418 B
Go
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{})
|
|
}
|
|
|
|
func TestMaxControlNesting(t *testing.T) {
|
|
testRule(t, "max_control_nesting", &rule.MaxControlNestingRule{}, &lint.RuleConfig{
|
|
Arguments: []any{int64(2)}},
|
|
)
|
|
}
|