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

Method TestNewProgress

console/progress_test.go:18–24  ·  view source on GitHub ↗
(c *C)

Source from the content-addressed store, hash-verified

16var _ = Suite(&ProgressSuite{})
17
18func (s *ProgressSuite) TestNewProgress(c *C) {
19 p := NewProgress(false)
20 c.Check(fmt.Sprintf("%T", p.worker), Equals, fmt.Sprintf("%T", &standardProgressWorker{}))
21
22 p = NewProgress(true)
23 c.Check(fmt.Sprintf("%T", p.worker), Equals, fmt.Sprintf("%T", &loggerProgressWorker{}))
24}

Callers

nothing calls this directly

Calls 2

NewProgressFunction · 0.85
CheckMethod · 0.45

Tested by

no test coverage detected