MCPcopy Index your code
hub / github.com/git-bug/git-bug / TestLongDescription

Function TestLongDescription

cache/repo_cache_test.go:339–353  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

337}
338
339func 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
355func checkBugPresence(t *testing.T, cache *RepoCache, bug *BugCache, presence bool) {
356 t.Helper()

Callers

nothing calls this directly

Calls 6

CreateGoGitTestRepoFunction · 0.92
IdentitiesMethod · 0.80
BugsMethod · 0.80
NewMethod · 0.45
NewRawMethod · 0.45

Tested by

no test coverage detected