-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogress_test.go
More file actions
42 lines (33 loc) · 996 Bytes
/
Copy pathprogress_test.go
File metadata and controls
42 lines (33 loc) · 996 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package progress
import (
"testing"
"github.com/stretchr/testify/suite"
)
type ProgressSuite struct {
suite.Suite
}
func (suite *ProgressSuite) SetupSuite() {
}
func (suite *ProgressSuite) TearDownSuite() {
}
func (suite *ProgressSuite) TestBarTypes() {
br := NewBarReporter("")
suite.Implements((*ReaderProgressReporter)(nil), br)
suite.Implements((*BoundedProgressReporter)(nil), br)
suite.Implements((*ExceptionCollector)(nil), br)
}
func (suite *ProgressSuite) TestSummaryTypes() {
br := NewSummaryReporter("")
suite.Implements((*ReaderProgressReporter)(nil), br)
suite.Implements((*BoundedProgressReporter)(nil), br)
suite.Implements((*ExceptionCollector)(nil), br)
}
func (suite *ProgressSuite) TestSilentTypes() {
br := NewSilentReporter()
suite.Implements((*ReaderProgressReporter)(nil), br)
suite.Implements((*BoundedProgressReporter)(nil), br)
suite.Implements((*ExceptionCollector)(nil), br)
}
func TestSuite(t *testing.T) {
suite.Run(t, new(ProgressSuite))
}