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

Function TestIgnore_MultilineFirstLineMatches

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

Source from the content-addressed store, hash-verified

133}
134
135func TestIgnore_MultilineFirstLineMatches(t *testing.T) {
136 msg := "Merge pull request #100 from org/branch\n\nAdditional body text"
137 linter := newDefaultLinter(t)
138 result, err := linter.ParseAndLint(msg)
139 if err != nil {
140 t.Fatalf("unexpected error: %v", err)
141 }
142 if len(result.Issues()) != 0 {
143 t.Errorf("expected multiline merge to be ignored, got %d issues", len(result.Issues()))
144 }
145}
146
147func TestIgnore_NotIgnored(t *testing.T) {
148 msgs := []string{

Callers

nothing calls this directly

Calls 3

newDefaultLinterFunction · 0.85
ParseAndLintMethod · 0.80
IssuesMethod · 0.80

Tested by

no test coverage detected