mirror of
https://github.com/mgechev/revive.git
synced 2024-11-21 17:16:40 +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"},
|
|
})
|
|
}
|