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

Function TestConfig_GetFormatterUnknown

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

Source from the content-addressed store, hash-verified

77}
78
79func TestConfig_GetFormatterUnknown(t *testing.T) {
80 conf := config.NewDefault()
81 conf.Formatter = "unknown"
82 _, err := config.GetFormatter(conf)
83 if err == nil {
84 t.Error("expected error for unknown formatter")
85 }
86}
87
88func TestConfig_Validate_Valid(t *testing.T) {
89 conf := config.NewDefault()

Callers

nothing calls this directly

Calls 3

NewDefaultFunction · 0.92
GetFormatterFunction · 0.92
ErrorMethod · 0.80

Tested by

no test coverage detected