1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-21 17:16:40 +02:00
revive/test/enforce_map_style_test.go
2024-11-11 19:31:18 +01:00

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"},
})
}