Repository: pterm/pterm
Pull request #239 (2021-07-22 01:03:33)

chore(deps): bump github.com/MarvinJWendt/testza from 0.1.0 to 0.2.0
Bumps [github.com/MarvinJWendt/testza](https://github.com/MarvinJWendt/testza) from 0.1.0 to 0.2.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/MarvinJWendt/testza/releases">github.com/MarvinJWendt/testza's releases</a>.</em></p>
<blockquote>
<h2>v0.2.0</h2>
<h3>Features</h3>
<ul>
<li><strong>assert:</strong> add <code>AssertTestFails</code></li>
</ul>
<h3>Test</h3>
<ul>
<li>rename test functions to new structure</li>
<li><strong>assert:</strong> test that assertions fail when they should</li>
<li><strong>assert:</strong> cleanup tests for <code>AssertTestFails</code></li>
<li><strong>assert:</strong> add more tests to <code>AssertEqual</code></li>
<li><strong>assert:</strong> add tests for <code>AssertTestFails</code></li>
<li><strong>mock:</strong> add test for <code>MockInputIntModify</code></li>
<li><strong>mock:</strong> add test for <code>MockInputFloat64Modify</code></li>
<li><strong>mock:</strong> add test for <code>MockInputFloat64GenerateRandomPositive</code> and <code>MockInputFloat64GenerateRandomNegative</code></li>
<li><strong>mock:</strong> add test for <code>MockInputBoolModify</code></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/MarvinJWendt/testza/blob/main/CHANGELOG.md">github.com/MarvinJWendt/testza's changelog</a>.</em></p>
<blockquote>
<h2>[v0.2.0] - 2021-07-21</h2>
<h3>Features</h3>
<ul>
<li><strong>assert:</strong> add <code>AssertTestFails</code></li>
</ul>
<h3>Test</h3>
<ul>
<li>rename test functions to new structure</li>
<li><strong>assert:</strong> test that assertions fail when they should</li>
<li><strong>assert:</strong> cleanup tests for <code>AssertTestFails</code></li>
<li><strong>assert:</strong> add more tests to <code>AssertEqual</code></li>
<li><strong>assert:</strong> add tests for <code>AssertTestFails</code></li>
<li><strong>mock:</strong> add test for <code>MockInputIntModify</code></li>
<li><strong>mock:</strong> add test for <code>MockInputFloat64Modify</code></li>
<li><strong>mock:</strong> add test for <code>MockInputFloat64GenerateRandomPositive</code> and <code>MockInputFloat64GenerateRandomNegative</code></li>
<li><strong>mock:</strong> add test for <code>MockInputBoolModify</code></li>
</ul>
<h3>Code Refactoring</h3>
<ul>
<li>move tests into own package</li>
<li><strong>assert:</strong> change <code>AssertPanic</code> to <code>AssertPanics</code></li>
</ul>
<h3>BREAKING CHANGE</h3>
<p>change <code>AssertPanic</code> to <code>AssertPanics</code></p>
<p><!-- raw HTML omitted --><!-- raw HTML omitted --></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/MarvinJWendt/testza/commit/42be76a830809d46094866cc9157e1ff921ed7a7"><code>42be76a</code></a> docs: autoupdate</li>
<li><a href="https://github.com/MarvinJWendt/testza/commit/aadd7ca15e17cfff808f7fc556b2150778efbc1d"><code>aadd7ca</code></a> docs: autoupdate</li>
<li><a href="https://github.com/MarvinJWendt/testza/commit/383d9cbbfb1209628d2db870bf3f19f4dac2b91e"><code>383d9cb</code></a> refactor(assert): change <code>AssertPanic</code> to <code>AssertPanics</code></li>
<li><a href="https://github.com/MarvinJWendt/testza/commit/021a666b7bd8e1182b25e68fd8697a2078518f87"><code>021a666</code></a> test(assert): test that assertions fail when they should</li>
<li><a href="https://github.com/MarvinJWendt/testza/commit/f585acd8589cbbbd54d7df313435792355264438"><code>f585acd</code></a> test(assert): cleanup tests for <code>AssertTestFails</code></li>
<li><a href="https://github.com/MarvinJWendt/testza/commit/21697eacc7d71dc09474f66f71f81fbb788c02e1"><code>21697ea</code></a> test(assert): add tests for <code>AssertTestFails</code></li>
<li><a href="https://github.com/MarvinJWendt/testza/commit/54ec3a2dc324a89587d1700b8592679b8467abea"><code>54ec3a2</code></a> feat(assert): add <code>AssertTestFails</code></li>
<li><a href="https://github.com/MarvinJWendt/testza/commit/df736d19f03b2c48e24d3bdd6f243614f7e7eb56"><code>df736d1</code></a> docs: autoupdate</li>
<li><a href="https://github.com/MarvinJWendt/testza/commit/3d958caa1477a7f897a913e216196ee4100078c1"><code>3d958ca</code></a> docs(readme): add go report card badge</li>
<li><a href="https://github.com/MarvinJWendt/testza/commit/28f1180ceb0e83bf13718afeeea34efd1416c410"><code>28f1180</code></a> docs: autoupdate</li>
<li>Additional commits viewable in <a href="https://github.com/MarvinJWendt/testza/compare/v0.1.0...v0.2.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/MarvinJWendt/testza&package-manager=go_modules&previous-version=0.1.0&new-version=0.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Patch:
diff --git a/go.mod b/go.mod
index f0895e6c..9c556c93 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@ module github.com/pterm/pterm
 go 1.15
 
 require (
-	github.com/MarvinJWendt/testza v0.1.0
+	github.com/MarvinJWendt/testza v0.2.0
 	github.com/atomicgo/cursor v0.0.1
 	github.com/gookit/color v1.4.2
 	github.com/mattn/go-runewidth v0.0.13
diff --git a/go.sum b/go.sum
index 3644e12c..60e6b804 100644
--- a/go.sum
+++ b/go.sum
@@ -1,5 +1,5 @@
-github.com/MarvinJWendt/testza v0.1.0 h1:4m+JkB/4e0nUlXdIa10Mg0poUz9CanQKjB3L+xecjAo=
-github.com/MarvinJWendt/testza v0.1.0/go.mod h1:7AxNvlfeHP7Z/hDQ5JtE3OKYT3XFUeLCDE2DQninSqs=
+github.com/MarvinJWendt/testza v0.2.0 h1:rieLkU80MjsTHYiGB8o//5sXRnXbaraEaFxe6vfEXMY=
+github.com/MarvinJWendt/testza v0.2.0/go.mod h1:7AxNvlfeHP7Z/hDQ5JtE3OKYT3XFUeLCDE2DQninSqs=
 github.com/atomicgo/cursor v0.0.1 h1:xdogsqa6YYlLfM+GyClC/Lchf7aiMerFiZQn7soTOoU=
 github.com/atomicgo/cursor v0.0.1/go.mod h1:cBON2QmmrysudxNBFthvMtN32r3jxVRIvzkUiF/RuIk=
 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=


Test patch:
diff --git a/prefix_printer_test.go b/prefix_printer_test.go
index 2bb92842..bf9915b0 100644
--- a/prefix_printer_test.go
+++ b/prefix_printer_test.go
@@ -204,7 +204,7 @@ func Test_checkFatal(t *testing.T) {
 	for _, p := range prefixPrinters {
 		t.Run("", func(t *testing.T) {
 			p2 := p.WithFatal()
-			testza.AssertPanic(t, func() {
+			testza.AssertPanics(t, func() {
 				p2.Println("Hello, World!")
 			})
 		})