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

Function TestIgnore_MergedPR

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

Source from the content-addressed store, hash-verified

48}
49
50func TestIgnore_MergedPR(t *testing.T) {
51 msgs := []string{
52 "Merged PR #456: Add new feature",
53 "Merged PR 789: Fix bug",
54 "Merged feature-branch in main",
55 "Merged feature-branch into main",
56 }
57 linter := newDefaultLinter(t)
58 for _, msg := range msgs {
59 result, err := linter.ParseAndLint(msg)
60 if err != nil {
61 t.Fatalf("error for %q: %v", msg, err)
62 }
63 if len(result.Issues()) != 0 {
64 t.Errorf("expected %q to be ignored, got %d issues", msg, len(result.Issues()))
65 }
66 }
67}
68
69func TestIgnore_RevertReapply(t *testing.T) {
70 msgs := []string{

Callers

nothing calls this directly

Calls 3

newDefaultLinterFunction · 0.85
ParseAndLintMethod · 0.80
IssuesMethod · 0.80

Tested by

no test coverage detected