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

Function TestConfig_Validate_EmptyFormatter

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

Source from the content-addressed store, hash-verified

106}
107
108func TestConfig_Validate_EmptyFormatter(t *testing.T) {
109 conf := config.NewDefault()
110 conf.Formatter = ""
111 errs := config.Validate(conf)
112 if len(errs) == 0 {
113 t.Error("expected validation errors for empty formatter")
114 }
115}
116
117func TestConfig_Validate_InvalidSeverity(t *testing.T) {
118 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