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

Function TestIgnore_InitialCommit

test/ignore_test.go:124–133  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

122}
123
124func TestIgnore_InitialCommit(t *testing.T) {
125 linter := newDefaultLinter(t)
126 result, err := linter.ParseAndLint("Initial commit")
127 if err != nil {
128 t.Fatalf("unexpected error: %v", err)
129 }
130 if len(result.Issues()) != 0 {
131 t.Errorf("expected 'Initial commit' to be ignored, got %d issues", len(result.Issues()))
132 }
133}
134
135func TestIgnore_MultilineFirstLineMatches(t *testing.T) {
136 msg := "Merge pull request #100 from org/branch\n\nAdditional body text"

Callers

nothing calls this directly

Calls 3

newDefaultLinterFunction · 0.85
ParseAndLintMethod · 0.80
IssuesMethod · 0.80

Tested by

no test coverage detected