@@ -42,7 +42,7 @@ func Test_git(t *testing.T) {
4242 called ()
4343
4444 gitDir , err := FlagValue [string ](ctx , "git-dir" )
45- test .Nil (t , err )
45+ test .NoError (t , err )
4646 test .Equal (t , "/path/to/something" , gitDir )
4747
4848 return nil
@@ -57,7 +57,7 @@ func Test_git(t *testing.T) {
5757 called ()
5858
5959 gitDir , err := FlagValue [string ](ctx , "git-dir" )
60- test .Nil (t , err )
60+ test .NoError (t , err )
6161 test .Equal (t , "/path/to/something" , gitDir )
6262
6363 return nil
@@ -82,7 +82,7 @@ func Test_git(t *testing.T) {
8282 called ()
8383
8484 message , err := FlagValue [string ](ctx , "message" )
85- test .Nil (t , err )
85+ test .NoError (t , err )
8686 test .Equal (t , "a commit message" , message )
8787
8888 return nil
@@ -97,11 +97,11 @@ func Test_git(t *testing.T) {
9797 called ()
9898
9999 isAll , err := FlagValue [bool ](ctx , "all" )
100- test .Nil (t , err )
100+ test .NoError (t , err )
101101 test .False (t , isAll )
102102
103103 message , err := FlagValue [string ](ctx , "message" )
104- test .Nil (t , err )
104+ test .NoError (t , err )
105105 test .Equal (t , "a commit message" , message )
106106
107107 return nil
@@ -116,11 +116,11 @@ func Test_git(t *testing.T) {
116116 called ()
117117
118118 isAll , err := FlagValue [bool ](ctx , "all" )
119- test .Nil (t , err )
119+ test .NoError (t , err )
120120 test .False (t , isAll )
121121
122122 message , err := FlagValue [string ](ctx , "message" )
123- test .Nil (t , err )
123+ test .NoError (t , err )
124124 test .Equal (t , "a commit message" , message )
125125
126126 return nil
@@ -135,11 +135,11 @@ func Test_git(t *testing.T) {
135135 called ()
136136
137137 isAll , err := FlagValue [bool ](ctx , "all" )
138- test .Nil (t , err )
138+ test .NoError (t , err )
139139 test .True (t , isAll )
140140
141141 message , err := FlagValue [string ](ctx , "message" )
142- test .Nil (t , err )
142+ test .NoError (t , err )
143143 test .Equal (t , "a commit message" , message )
144144
145145 return nil
@@ -154,7 +154,7 @@ func Test_git(t *testing.T) {
154154 called ()
155155
156156 branch , err := ArgValue [string ](ctx , "branch" )
157- test .Nil (t , err )
157+ test .NoError (t , err )
158158 test .Equal (t , "some-branch" , branch )
159159
160160 return nil
@@ -169,11 +169,11 @@ func Test_git(t *testing.T) {
169169 called ()
170170
171171 branch , err := ArgValue [string ](ctx , "branch" )
172- test .Nil (t , err )
172+ test .NoError (t , err )
173173 test .Equal (t , "some-branch" , branch )
174174
175175 isNewBranch , err := FlagValue [bool ](ctx , "new-branch" )
176- test .Nil (t , err )
176+ test .NoError (t , err )
177177 test .True (t , isNewBranch )
178178
179179 return nil
@@ -188,7 +188,7 @@ func Test_git(t *testing.T) {
188188 called ()
189189
190190 globalGitignore , err := FlagValue [string ](ctx , "global-gitignore" )
191- test .Nil (t , err )
191+ test .NoError (t , err )
192192 test .Equal (t , globalGitignore , "path/to/some/.gitignore" )
193193 return nil
194194 }
@@ -228,7 +228,7 @@ func Test_git(t *testing.T) {
228228 SetHandler (lo .IfF (testCase .gitHandler != nil , func () Handler { return testCase .gitHandler (t ) }).Else (nil )),
229229 )
230230
231- test .MustNoError (t , err )
231+ test .NoError (t , err )
232232 test .Nil (t , command .Run (context .TODO (), testCase .rawArgs ))
233233 })
234234 }
0 commit comments