--------------------------------------------------------------------------- Body edge cases ---------------------------------------------------------------------------
(t *testing.T)
| 263 | // --------------------------------------------------------------------------- |
| 264 | |
| 265 | func TestLint_BodyWithinLimit(t *testing.T) { |
| 266 | linter := newDefaultLinter(t) |
| 267 | result, err := linter.ParseAndLint("feat: add feature\n\nShort body line.") |
| 268 | if err != nil { |
| 269 | t.Fatal(err) |
| 270 | } |
| 271 | if len(result.Issues()) != 0 { |
| 272 | t.Error("body within 72 chars should pass") |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | func TestLint_BodyMultiLineAllWithin(t *testing.T) { |
| 277 | linter := newDefaultLinter(t) |
nothing calls this directly
no test coverage detected