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

Function TestConfig_Validate_ValidIgnorePattern

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

Source from the content-addressed store, hash-verified

153}
154
155func TestConfig_Validate_ValidIgnorePattern(t *testing.T) {
156 conf := config.NewDefault()
157 conf.IgnorePatterns = []string{`^Merge .*`}
158 errs := config.Validate(conf)
159 for _, e := range errs {
160 t.Errorf("unexpected validation error: %v", e)
161 }
162}
163
164func TestConfig_WriteCompactTo(t *testing.T) {
165 conf := config.NewDefault()

Callers

nothing calls this directly

Calls 2

NewDefaultFunction · 0.92
ValidateFunction · 0.92

Tested by

no test coverage detected