mirror of
https://github.com/mgechev/revive.git
synced 2024-11-30 08:57:07 +02:00
17 lines
361 B
Go
17 lines
361 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/mgechev/revive/lint"
|
|
"github.com/mgechev/revive/rule"
|
|
)
|
|
|
|
func TestVarNaming(t *testing.T) {
|
|
testRule(t, "var-naming", &rule.VarNamingRule{}, &lint.RuleConfig{
|
|
Arguments: []interface{}{[]interface{}{"ID"}, []interface{}{"VM"}},
|
|
})
|
|
|
|
testRule(t, "var-naming_test", &rule.VarNamingRule{}, &lint.RuleConfig{})
|
|
}
|