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

Function TestConfig_NewLinter

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

Source from the content-addressed store, hash-verified

40}
41
42func TestConfig_NewLinter(t *testing.T) {
43 conf := config.NewDefault()
44 linter, err := config.NewLinter(conf)
45 if err != nil {
46 t.Fatalf("unexpected error: %v", err)
47 }
48 if linter == nil {
49 t.Fatal("expected non-nil linter")
50 }
51}
52
53func TestConfig_GetFormatter(t *testing.T) {
54 conf := config.NewDefault()

Callers

nothing calls this directly

Calls 2

NewDefaultFunction · 0.92
NewLinterFunction · 0.92

Tested by

no test coverage detected