mirror of
https://github.com/mgechev/revive.git
synced 2024-11-24 08:32:22 +02:00
25 lines
563 B
Go
25 lines
563 B
Go
package test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/mgechev/revive/lint"
|
|
"github.com/mgechev/revive/rule"
|
|
)
|
|
|
|
func TestEnforceMapStyle_any(t *testing.T) {
|
|
testRule(t, "enforce-map-style-any", &rule.EnforceMapStyleRule{})
|
|
}
|
|
|
|
func TestEnforceMapStyle_make(t *testing.T) {
|
|
testRule(t, "enforce-map-style-make", &rule.EnforceMapStyleRule{}, &lint.RuleConfig{
|
|
Arguments: []any{"make"},
|
|
})
|
|
}
|
|
|
|
func TestEnforceMapStyle_literal(t *testing.T) {
|
|
testRule(t, "enforce-map-style-literal", &rule.EnforceMapStyleRule{}, &lint.RuleConfig{
|
|
Arguments: []any{"literal"},
|
|
})
|
|
}
|