(t *testing.T)
| 108 | } |
| 109 | |
| 110 | func TestLint_InvalidCommits(t *testing.T) { |
| 111 | linter := newDefaultLinter(t) |
| 112 | for _, tc := range invalidCommitCases { |
| 113 | t.Run(tc.name, func(t *testing.T) { |
| 114 | result, err := linter.ParseAndLint(tc.msg) |
| 115 | if err != nil { |
| 116 | t.Fatalf("unexpected error: %v", err) |
| 117 | } |
| 118 | if len(result.Issues()) < tc.wantMin { |
| 119 | t.Errorf("expected >= %d issues for %q, got %d", tc.wantMin, tc.msg, len(result.Issues())) |
| 120 | } |
| 121 | }) |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | // --------------------------------------------------------------------------- |
| 126 | // Specific rule-violation checks (verify the exact rule name in issues) |
nothing calls this directly
no test coverage detected