MCPcopy Create free account
hub / github.com/conventionalcommit/commitlint / TestDefaultSettings

Function TestDefaultSettings

config/default_test.go:18–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func TestDefaultSettings(t *testing.T) {
19 defConf := NewDefault()
20 rules := registry.Rules()
21 settingSize := len(defConf.Settings)
22 if len(rules) != settingSize {
23 t.Error("default config does not have all rule settings", len(rules), settingSize)
24 return
25 }
26}

Callers

nothing calls this directly

Calls 3

RulesFunction · 0.92
NewDefaultFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected