mirror of
https://github.com/mgechev/revive.git
synced 2024-12-02 09:02:23 +02:00
27 lines
737 B
Go
27 lines
737 B
Go
|
package test
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/mgechev/revive/lint"
|
||
|
"github.com/mgechev/revive/rule"
|
||
|
)
|
||
|
|
||
|
func TestExportedWithDisableStutteringCheck(t *testing.T) {
|
||
|
args := []interface{}{"disableStutteringCheck"}
|
||
|
|
||
|
testRule(t, "exported-issue-555", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||
|
}
|
||
|
|
||
|
func TestExportedWithChecksOnMethodsOfPrivateTypes(t *testing.T) {
|
||
|
args := []interface{}{"checkPrivateReceivers"}
|
||
|
|
||
|
testRule(t, "exported-issue-552", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||
|
}
|
||
|
|
||
|
func TestExportedReplacingStuttersByRepetitive(t *testing.T) {
|
||
|
args := []interface{}{"sayRepetitiveInsteadOfStutters"}
|
||
|
|
||
|
testRule(t, "exported-issue-519", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args})
|
||
|
}
|