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

Function TestConfig_Validate_Valid

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

Source from the content-addressed store, hash-verified

86}
87
88func TestConfig_Validate_Valid(t *testing.T) {
89 conf := config.NewDefault()
90 errs := config.Validate(conf)
91 if len(errs) != 0 {
92 t.Errorf("expected no validation errors, got %d:", len(errs))
93 for _, e := range errs {
94 t.Errorf(" - %v", e)
95 }
96 }
97}
98
99func TestConfig_Validate_InvalidFormatter(t *testing.T) {
100 conf := config.NewDefault()

Callers

nothing calls this directly

Calls 2

NewDefaultFunction · 0.92
ValidateFunction · 0.92

Tested by

no test coverage detected