MCPcopy Index your code
hub / github.com/conventionalcommit/commitlint / TestConfig_Validate_InvalidFormatter

Function TestConfig_Validate_InvalidFormatter

test/config_test.go:99–106  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

97}
98
99func TestConfig_Validate_InvalidFormatter(t *testing.T) {
100 conf := config.NewDefault()
101 conf.Formatter = "nonexistent"
102 errs := config.Validate(conf)
103 if len(errs) == 0 {
104 t.Error("expected validation errors for unknown formatter")
105 }
106}
107
108func TestConfig_Validate_EmptyFormatter(t *testing.T) {
109 conf := config.NewDefault()

Callers

nothing calls this directly

Calls 3

NewDefaultFunction · 0.92
ValidateFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected