chore: fix wrong grammar
parent
75c3678b80
commit
cd0ba635cd
|
@ -294,8 +294,8 @@
|
||||||
with my usecase) thanks to <strong>stretchr/testify</strong>. I init all
|
with my usecase) thanks to <strong>stretchr/testify</strong>. I init all
|
||||||
<strong>default</strong> action on <strong>success</strong> case. Then I
|
<strong>default</strong> action on <strong>success</strong> case. Then I
|
||||||
<strong>alter</strong> request or mock error for unit test to hit on other
|
<strong>alter</strong> request or mock error for unit test to hit on other
|
||||||
case. Remember if unit test is hit, code coverate is surely increaesed,
|
case. Remember if unit test is hit, code coverage is surely increased, and
|
||||||
and that my <strong>goal</strong>.
|
that my <strong>goal</strong>.
|
||||||
</p>
|
</p>
|
||||||
<div class="highlight highlight-source-go">
|
<div class="highlight highlight-source-go">
|
||||||
<pre><span class="pl-c">// Init ServiceSuite as above</span>
|
<pre><span class="pl-c">// Init ServiceSuite as above</span>
|
||||||
|
|
|
@ -219,7 +219,7 @@ When I see it, `TestPodBuild` has almost 2000 lines.
|
||||||
The solution I propose here is simple (absolutely not perfect, but good with my usecase) thanks to **stretchr/testify**.
|
The solution I propose here is simple (absolutely not perfect, but good with my usecase) thanks to **stretchr/testify**.
|
||||||
I init all **default** action on **success** case.
|
I init all **default** action on **success** case.
|
||||||
Then I **alter** request or mock error for unit test to hit on other case.
|
Then I **alter** request or mock error for unit test to hit on other case.
|
||||||
Remember if unit test is hit, code coverate is surely increaesed, and that my **goal**.
|
Remember if unit test is hit, code coverage is surely increased, and that my **goal**.
|
||||||
|
|
||||||
```go
|
```go
|
||||||
// Init ServiceSuite as above
|
// Init ServiceSuite as above
|
||||||
|
|
Loading…
Reference in New Issue