github.com/songshiyun/revive@v1.1.5-0.20220323112655-f8433a19b3c5/test/exported_test.go (about) 1 package test 2 3 import ( 4 "testing" 5 6 "github.com/songshiyun/revive/lint" 7 "github.com/songshiyun/revive/rule" 8 ) 9 10 func TestExportedWithDisableStutteringCheck(t *testing.T) { 11 args := []interface{}{"disableStutteringCheck"} 12 13 testRule(t, "exported-issue-555", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args}) 14 } 15 16 func TestExportedWithChecksOnMethodsOfPrivateTypes(t *testing.T) { 17 args := []interface{}{"checkPrivateReceivers"} 18 19 testRule(t, "exported-issue-552", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args}) 20 } 21 22 func TestExportedReplacingStuttersByRepetitive(t *testing.T) { 23 args := []interface{}{"sayRepetitiveInsteadOfStutters"} 24 25 testRule(t, "exported-issue-519", &rule.ExportedRule{}, &lint.RuleConfig{Arguments: args}) 26 }