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

Function TestReadBugs

tests/read_bugs_test.go:11–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestReadBugs(t *testing.T) {
12 repo := repository.CreateGoGitTestRepo(t, false)
13
14 random_bugs.FillRepoWithSeed(repo, 15, 42)
15
16 bugs := bug.ReadAll(repo)
17 for b := range bugs {
18 if b.Err != nil {
19 t.Fatal(b.Err)
20 }
21 }
22}
23
24func benchmarkReadBugs(bugNumber int, t *testing.B) {
25 repo := repository.CreateGoGitTestRepo(t, false)

Callers

nothing calls this directly

Calls 4

CreateGoGitTestRepoFunction · 0.92
FillRepoWithSeedFunction · 0.92
ReadAllFunction · 0.92
FatalMethod · 0.80

Tested by

no test coverage detected