(t *testing.T)
| 337 | } |
| 338 | |
| 339 | func TestLongDescription(t *testing.T) { |
| 340 | // See https://github.com/git-bug/git-bug/issues/606 |
| 341 | |
| 342 | text := strings.Repeat("x", 65536) |
| 343 | |
| 344 | repo := repository.CreateGoGitTestRepo(t, false) |
| 345 | |
| 346 | backend := createTestRepoCacheNoEvents(t, repo) |
| 347 | |
| 348 | i, err := backend.Identities().New("René Descartes", "rene@descartes.fr") |
| 349 | require.NoError(t, err) |
| 350 | |
| 351 | _, _, err = backend.Bugs().NewRaw(i, time.Now().Unix(), text, text, nil, nil) |
| 352 | require.NoError(t, err) |
| 353 | } |
| 354 | |
| 355 | func checkBugPresence(t *testing.T, cache *RepoCache, bug *BugCache, presence bool) { |
| 356 | t.Helper() |
nothing calls this directly
no test coverage detected