wip(assertion): incomplete refactor of tests and assertion helpers

Tests have started using github.com/jimeh/go-mocktesting which allows
testing unhappy paths where t.Fatal() and related functions are called.
This commit is contained in:
2021-12-28 02:08:40 +00:00
parent 3f967b571f
commit 4e07a1a657
37 changed files with 2510 additions and 489 deletions

View File

@@ -1 +1 @@
<Comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</Comic>
<comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</comic>

View File

@@ -1,4 +1,4 @@
<Book>
<book>
<id></id>
<title></title>
</Book>
</book>

View File

@@ -1,4 +1,4 @@
<Book>
<book>
<id>cfda163c-d5c1-44a2-909b-5d2ce3a31979</id>
<title>The Traveler</title>
<author>
@@ -6,4 +6,4 @@
<last_name>Twelve Hawks</last_name>
</author>
<year>2005</year>
</Book>
</book>

View File

@@ -1,4 +1,4 @@
<Book>
<book>
<id>cfda163c-d5c1-44a2-909b-5d2ce3a31979</id>
<title>The Traveler</title>
</Book>
</book>

View File

@@ -1 +1 @@
<Comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</Comic>
<comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</comic>

View File

@@ -1,4 +1,4 @@
<Article>
<article>
<id></id>
<title></title>
</Article>
</article>

View File

@@ -1,4 +1,4 @@
<Article>
<article>
<id>10eec54d-e30a-4428-be18-01095d889126</id>
<title>Time Travel</title>
<author>
@@ -6,4 +6,4 @@
<last_name>Brown</last_name>
</author>
<date>2021-10-27T22:30:34Z</date>
</Article>
</article>

View File

@@ -1,4 +1,4 @@
<Book>
<book>
<id>10eec54d-e30a-4428-be18-01095d889126</id>
<title>Time Travel</title>
</Book>
</book>

View File

@@ -1 +1 @@
<Comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</Comic>
<comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</comic>

View File

@@ -1,4 +1,4 @@
<Book>
<book>
<id></id>
<title></title>
</Book>
</book>

View File

@@ -1,4 +1,4 @@
<Book>
<book>
<id>cfda163c-d5c1-44a2-909b-5d2ce3a31979</id>
<title>The Traveler</title>
<author>
@@ -6,4 +6,4 @@
<last_name>Twelve Hawks</last_name>
</author>
<year>2005</year>
</Book>
</book>

View File

@@ -1,4 +1,4 @@
<Book>
<book>
<id>cfda163c-d5c1-44a2-909b-5d2ce3a31979</id>
<title>The Traveler</title>
</Book>
</book>

View File

@@ -1 +1 @@
<Comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</Comic>
<comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</comic>

View File

@@ -1,4 +1,4 @@
<Article>
<article>
<id></id>
<title></title>
</Article>
</article>

View File

@@ -1,4 +1,4 @@
<Article>
<article>
<id>10eec54d-e30a-4428-be18-01095d889126</id>
<title>Time Travel</title>
<author>
@@ -6,4 +6,4 @@
<last_name>Brown</last_name>
</author>
<date>2021-10-27T22:30:34Z</date>
</Article>
</article>

View File

@@ -1,4 +1,4 @@
<Book>
<book>
<id>10eec54d-e30a-4428-be18-01095d889126</id>
<title>Time Travel</title>
</Book>
</book>