MCPcopy Create free account
hub / github.com/aptly-dev/aptly / NewProgress

Function NewProgress

console/progress.go:48–56  ·  view source on GitHub ↗

NewProgress creates new progress instance

(structuredLogging bool)

Source from the content-addressed store, hash-verified

46
47// NewProgress creates new progress instance
48func NewProgress(structuredLogging bool) *Progress {
49 p := &Progress{
50 stopped: make(chan bool),
51 queue: make(chan printTask, 100),
52 }
53
54 p.worker = progressWorkerFactroy(structuredLogging, p)
55 return p
56}
57
58// Start makes progress start its work
59func (p *Progress) Start() {

Callers 6

SetUpTestMethod · 0.92
SetUpTestMethod · 0.92
SetUpTestMethod · 0.92
SetUpTestMethod · 0.92
_progressMethod · 0.92
TestNewProgressMethod · 0.85

Calls 1

progressWorkerFactroyFunction · 0.85

Tested by 5

SetUpTestMethod · 0.74
SetUpTestMethod · 0.74
SetUpTestMethod · 0.74
SetUpTestMethod · 0.74
TestNewProgressMethod · 0.68