-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathflags_test.go
76 lines (57 loc) · 2.07 KB
/
flags_test.go
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package main
import (
"testing"
"github.com/stretchr/testify/suite"
"github.com/urfave/cli"
)
type FlagsTestSuite struct {
suite.Suite
}
func TestFlags(t *testing.T) {
suite.Run(t, new(FlagsTestSuite))
}
func (s *FlagsTestSuite) Test_getFlagBuildOutput() {
ensureFlag(s.T(), getFlagBuildOutput(), cli.StringFlag{}, `^output.*`)
}
func (s *FlagsTestSuite) Test_getFlagCommandArguments() {
ensureFlag(s.T(), getFlagCommandArguments(), cli.StringFlag{}, `^args`)
}
func (s *FlagsTestSuite) Test_getFlagCommandsDelimiter() {
ensureFlag(s.T(), getFlagCommandsDelimiter(), cli.StringFlag{}, `^exec-delim.*`)
}
func (s *FlagsTestSuite) Test_getFlagEnvVars() {
ensureFlag(s.T(), getFlagEnvVars(), cli.StringSliceFlag{}, `^env.*`)
}
func (s *FlagsTestSuite) Test_getFlagExecGroups() {
ensureFlag(s.T(), getFlagExecGroups(), cli.StringSliceFlag{}, `^exec.*`)
}
func (s *FlagsTestSuite) Test_getFlagFileExtensions() {
ensureFlag(s.T(), getFlagFileExtensions(), cli.StringFlag{}, `^exts.*`)
}
func (s *FlagsTestSuite) Test_getFlagIgnoredNames() {
ensureFlag(s.T(), getFlagIgnoredNames(), cli.StringFlag{}, `^ignore.*`)
}
func (s *FlagsTestSuite) Test_getFlagRate() {
ensureFlag(s.T(), getFlagRate(), cli.DurationFlag{}, `^rate.*`)
}
func (s *FlagsTestSuite) Test_getFlagWatchDirectory() {
ensureFlag(s.T(), getFlagWatchDirectory(), cli.StringFlag{}, `^watch.*`)
}
func (s *FlagsTestSuite) Test_getFlagWorkDirectory() {
ensureFlag(s.T(), getFlagWorkDirectory(), cli.StringFlag{}, `^dir.*`)
}
func (s *FlagsTestSuite) Test_getFlagCommit() {
ensureFlag(s.T(), getFlagCommit(), cli.BoolFlag{}, `^commit.*`)
}
func (s *FlagsTestSuite) Test_getFlagSemver() {
ensureFlag(s.T(), getFlagSemver(), cli.BoolFlag{}, `^semver.*`)
}
func (s *FlagsTestSuite) Test_getFlagSilent() {
ensureFlag(s.T(), getFlagSilent(), cli.BoolFlag{}, `^silent.*`)
}
func (s *FlagsTestSuite) Test_getFlagVerboseLogs() {
ensureFlag(s.T(), getFlagVerboseLogs(), cli.BoolFlag{}, `^verbose.*`)
}
func (s *FlagsTestSuite) Test_getFlagSuperVerboseLogs() {
ensureFlag(s.T(), getFlagSuperVerboseLogs(), cli.BoolFlag{}, `^vverbose.*`)
}