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

Function TestIgnore_FixupSquashAmend

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

Source from the content-addressed store, hash-verified

87}
88
89func TestIgnore_FixupSquashAmend(t *testing.T) {
90 msgs := []string{
91 "fixup! feat: add something",
92 "squash! fix: repair something",
93 "amend! chore: update deps",
94 }
95 linter := newDefaultLinter(t)
96 for _, msg := range msgs {
97 result, err := linter.ParseAndLint(msg)
98 if err != nil {
99 t.Fatalf("error for %q: %v", msg, err)
100 }
101 if len(result.Issues()) != 0 {
102 t.Errorf("expected %q to be ignored, got %d issues", msg, len(result.Issues()))
103 }
104 }
105}
106
107func TestIgnore_AutomaticMerge(t *testing.T) {
108 msgs := []string{

Callers

nothing calls this directly

Calls 3

newDefaultLinterFunction · 0.85
ParseAndLintMethod · 0.80
IssuesMethod · 0.80

Tested by

no test coverage detected