@@ -42,7 +42,7 @@ func Test_git(t *testing.T) {
42
42
called ()
43
43
44
44
gitDir , err := FlagValue [string ](ctx , "git-dir" )
45
- test .Nil (t , err )
45
+ test .NoError (t , err )
46
46
test .Equal (t , "/path/to/something" , gitDir )
47
47
48
48
return nil
@@ -57,7 +57,7 @@ func Test_git(t *testing.T) {
57
57
called ()
58
58
59
59
gitDir , err := FlagValue [string ](ctx , "git-dir" )
60
- test .Nil (t , err )
60
+ test .NoError (t , err )
61
61
test .Equal (t , "/path/to/something" , gitDir )
62
62
63
63
return nil
@@ -82,7 +82,7 @@ func Test_git(t *testing.T) {
82
82
called ()
83
83
84
84
message , err := FlagValue [string ](ctx , "message" )
85
- test .Nil (t , err )
85
+ test .NoError (t , err )
86
86
test .Equal (t , "a commit message" , message )
87
87
88
88
return nil
@@ -97,11 +97,11 @@ func Test_git(t *testing.T) {
97
97
called ()
98
98
99
99
isAll , err := FlagValue [bool ](ctx , "all" )
100
- test .Nil (t , err )
100
+ test .NoError (t , err )
101
101
test .False (t , isAll )
102
102
103
103
message , err := FlagValue [string ](ctx , "message" )
104
- test .Nil (t , err )
104
+ test .NoError (t , err )
105
105
test .Equal (t , "a commit message" , message )
106
106
107
107
return nil
@@ -116,11 +116,11 @@ func Test_git(t *testing.T) {
116
116
called ()
117
117
118
118
isAll , err := FlagValue [bool ](ctx , "all" )
119
- test .Nil (t , err )
119
+ test .NoError (t , err )
120
120
test .False (t , isAll )
121
121
122
122
message , err := FlagValue [string ](ctx , "message" )
123
- test .Nil (t , err )
123
+ test .NoError (t , err )
124
124
test .Equal (t , "a commit message" , message )
125
125
126
126
return nil
@@ -135,11 +135,11 @@ func Test_git(t *testing.T) {
135
135
called ()
136
136
137
137
isAll , err := FlagValue [bool ](ctx , "all" )
138
- test .Nil (t , err )
138
+ test .NoError (t , err )
139
139
test .True (t , isAll )
140
140
141
141
message , err := FlagValue [string ](ctx , "message" )
142
- test .Nil (t , err )
142
+ test .NoError (t , err )
143
143
test .Equal (t , "a commit message" , message )
144
144
145
145
return nil
@@ -154,7 +154,7 @@ func Test_git(t *testing.T) {
154
154
called ()
155
155
156
156
branch , err := ArgValue [string ](ctx , "branch" )
157
- test .Nil (t , err )
157
+ test .NoError (t , err )
158
158
test .Equal (t , "some-branch" , branch )
159
159
160
160
return nil
@@ -169,11 +169,11 @@ func Test_git(t *testing.T) {
169
169
called ()
170
170
171
171
branch , err := ArgValue [string ](ctx , "branch" )
172
- test .Nil (t , err )
172
+ test .NoError (t , err )
173
173
test .Equal (t , "some-branch" , branch )
174
174
175
175
isNewBranch , err := FlagValue [bool ](ctx , "new-branch" )
176
- test .Nil (t , err )
176
+ test .NoError (t , err )
177
177
test .True (t , isNewBranch )
178
178
179
179
return nil
@@ -188,7 +188,7 @@ func Test_git(t *testing.T) {
188
188
called ()
189
189
190
190
globalGitignore , err := FlagValue [string ](ctx , "global-gitignore" )
191
- test .Nil (t , err )
191
+ test .NoError (t , err )
192
192
test .Equal (t , globalGitignore , "path/to/some/.gitignore" )
193
193
return nil
194
194
}
@@ -228,7 +228,7 @@ func Test_git(t *testing.T) {
228
228
SetHandler (lo .IfF (testCase .gitHandler != nil , func () Handler { return testCase .gitHandler (t ) }).Else (nil )),
229
229
)
230
230
231
- test .MustNoError (t , err )
231
+ test .NoError (t , err )
232
232
test .Nil (t , command .Run (context .TODO (), testCase .rawArgs ))
233
233
})
234
234
}
0 commit comments