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

Function TestIgnore_IgnoredResultHasNoIssues

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

Source from the content-addressed store, hash-verified

332}
333
334func TestIgnore_IgnoredResultHasNoIssues(t *testing.T) {
335 linter := newDefaultLinter(t)
336 msg := "Merge pull request #42 from org/feature"
337 result, err := linter.ParseAndLint(msg)
338 if err != nil {
339 t.Fatalf("unexpected error: %v", err)
340 }
341 if result.Input() != msg {
342 t.Errorf("expected input preserved, got %q", result.Input())
343 }
344 if len(result.Issues()) != 0 {
345 t.Errorf("expected no issues for ignored commit, got %d", len(result.Issues()))
346 }
347}

Callers

nothing calls this directly

Calls 4

newDefaultLinterFunction · 0.85
ParseAndLintMethod · 0.80
InputMethod · 0.80
IssuesMethod · 0.80

Tested by

no test coverage detected