feat: ignore rsp
parent
177fbb5b7e
commit
2864b3087d
|
@ -180,5 +180,5 @@ func (s *ServiceSuite) TestUpload() {
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
</code></pre><p>So if request change fields or more dependencies, I need to update success case, and maybe add corresponding error case if need.<p>Same idea but still with table, you can find here <a href=https://arslan.io/2022/12/04/functional-table-driven-tests-in-go/>Functional table-driven tests in Go - Fatih Arslan</a>.</p><a href=mailto:hauvipapro+posts@gmail.com>Feel free to ask me via email</a>
|
</code></pre><p>If you think this is not quick enough, just <strong>ignore</strong> the response.<br>You only need to check error or not if you want code coverage only.<p>So if request change fields or more dependencies, I need to update success case, and maybe add corresponding error case if need.<p>Same idea but still with table, you can find here <a href=https://arslan.io/2022/12/04/functional-table-driven-tests-in-go/>Functional table-driven tests in Go - Fatih Arslan</a>.</p><a href=mailto:hauvipapro+posts@gmail.com>Feel free to ask me via email</a>
|
||||||
<a rel=me href=https://hachyderm.io/@haunguyen>Mastodon</a>
|
<a rel=me href=https://hachyderm.io/@haunguyen>Mastodon</a>
|
|
@ -262,6 +262,9 @@ func (s *ServiceSuite) TestUpload() {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you think this is not quick enough, just **ignore** the response.
|
||||||
|
You only need to check error or not if you want code coverage only.
|
||||||
|
|
||||||
So if request change fields or more dependencies, I need to update success case, and maybe add corresponding error case if need.
|
So if request change fields or more dependencies, I need to update success case, and maybe add corresponding error case if need.
|
||||||
|
|
||||||
Same idea but still with table, you can find here [Functional table-driven tests in Go - Fatih Arslan](https://arslan.io/2022/12/04/functional-table-driven-tests-in-go/).
|
Same idea but still with table, you can find here [Functional table-driven tests in Go - Fatih Arslan](https://arslan.io/2022/12/04/functional-table-driven-tests-in-go/).
|
||||||
|
|
Loading…
Reference in New Issue