mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-04-20 19:38:39 +00:00
implement structured logging
This commit is contained in:
committed by
Benj Fassbind
parent
0c749922c9
commit
8e62195eb5
24
console/progress_test.go
Normal file
24
console/progress_test.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package console
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
. "gopkg.in/check.v1"
|
||||
)
|
||||
|
||||
func Test(t *testing.T) {
|
||||
TestingT(t)
|
||||
}
|
||||
|
||||
type ProgressSuite struct {}
|
||||
|
||||
var _ = Suite(&ProgressSuite{})
|
||||
|
||||
func (s *ProgressSuite) TestNewProgress(c *C) {
|
||||
p := NewProgress(false)
|
||||
c.Check(fmt.Sprintf("%T", p.worker), Equals, fmt.Sprintf("%T", &standardProgressWorker{}))
|
||||
|
||||
p = NewProgress(true)
|
||||
c.Check(fmt.Sprintf("%T", p.worker), Equals, fmt.Sprintf("%T", &loggerProgressWorker{}))
|
||||
}
|
||||
Reference in New Issue
Block a user