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

Function CommitRandomBugsWithSeed

misc/random_bugs/create_random_bugs.go:48–59  ·  view source on GitHub ↗
(repo repository.ClockedRepo, opts Options, seed int64)

Source from the content-addressed store, hash-verified

46}
47
48func CommitRandomBugsWithSeed(repo repository.ClockedRepo, opts Options, seed int64) {
49 generateRandomPersons(repo, opts.PersonNumber)
50
51 bugs := generateRandomBugsWithSeed(opts, seed)
52
53 for _, b := range bugs {
54 err := b.Commit(repo)
55 if err != nil {
56 panic(err)
57 }
58 }
59}
60
61func generateRandomBugsWithSeed(opts Options, seed int64) []*bug.Bug {
62 rand.Seed(seed)

Callers 2

FillRepoWithSeedFunction · 0.85
CommitRandomBugsFunction · 0.85

Calls 3

generateRandomPersonsFunction · 0.85
CommitMethod · 0.65

Tested by

no test coverage detected