mirror of
https://github.com/mgechev/revive.git
synced 2025-05-21 22:13:14 +02:00
15 lines
457 B
Go
15 lines
457 B
Go
|
package test
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/mgechev/revive/lint"
|
||
|
"github.com/mgechev/revive/rule"
|
||
|
)
|
||
|
|
||
|
func TestIndentErrorFlow(t *testing.T) {
|
||
|
testRule(t, "indent_error_flow", &rule.IndentErrorFlowRule{})
|
||
|
testRule(t, "indent_error_flow_scope", &rule.IndentErrorFlowRule{}, &lint.RuleConfig{Arguments: []any{"preserveScope"}})
|
||
|
testRule(t, "indent_error_flow_scope", &rule.IndentErrorFlowRule{}, &lint.RuleConfig{Arguments: []any{"preserve-scope"}})
|
||
|
}
|