feat(assert): add marshaling assertion helpers for JSON, YAML and XML

This commit is contained in:
2021-11-06 20:24:01 +00:00
parent edb189f086
commit 3f967b571f
118 changed files with 1248 additions and 17 deletions

View File

@@ -0,0 +1,3 @@
{
"2fd5af35-b85e-4f03-8eba-524be28d7a5b": "Hello World!=Forty Two"
}

View File

@@ -0,0 +1,4 @@
{
"id": "",
"title": ""
}

View File

@@ -0,0 +1 @@
false

View File

@@ -0,0 +1,9 @@
{
"id": "cfda163c-d5c1-44a2-909b-5d2ce3a31979",
"title": "The Traveler",
"author": {
"first_name": "John",
"last_name": "Twelve Hawks"
},
"year": 2005
}

View File

@@ -0,0 +1 @@
42

View File

@@ -0,0 +1,4 @@
{
"id": "cfda163c-d5c1-44a2-909b-5d2ce3a31979",
"title": "The Traveler"
}

View File

@@ -0,0 +1 @@
"hello world"

View File

@@ -0,0 +1 @@
true

View File

@@ -0,0 +1,3 @@
{
"2fd5af35-b85e-4f03-8eba-524be28d7a5b": "Hello World!=Forty Two"
}

View File

@@ -0,0 +1,5 @@
{
"id": "",
"title": "",
"author": null
}

View File

@@ -0,0 +1 @@
false

View File

@@ -0,0 +1,9 @@
{
"id": "10eec54d-e30a-4428-be18-01095d889126",
"title": "Time Travel",
"author": {
"first_name": "Doc",
"last_name": "Brown"
},
"date": "2021-10-27T22:30:34Z"
}

View File

@@ -0,0 +1 @@
42

View File

@@ -0,0 +1,4 @@
{
"id": "10eec54d-e30a-4428-be18-01095d889126",
"title": "Time Travel"
}

View File

@@ -0,0 +1 @@
"hello world"

View File

@@ -0,0 +1 @@
true

View File

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

View File

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

View File

@@ -0,0 +1 @@
<bool>false</bool>

View File

@@ -0,0 +1,9 @@
<Book>
<id>cfda163c-d5c1-44a2-909b-5d2ce3a31979</id>
<title>The Traveler</title>
<author>
<first_name>John</first_name>
<last_name>Twelve Hawks</last_name>
</author>
<year>2005</year>
</Book>

View File

@@ -0,0 +1 @@
<int>42</int>

View File

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

View File

@@ -0,0 +1 @@
<string>hello world</string>

View File

@@ -0,0 +1 @@
<bool>true</bool>

View File

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

View File

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

View File

@@ -0,0 +1 @@
<bool>false</bool>

View File

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

View File

@@ -0,0 +1 @@
<int>42</int>

View File

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

View File

@@ -0,0 +1 @@
<string>hello world</string>

View File

@@ -0,0 +1 @@
<bool>true</bool>

View File

@@ -0,0 +1,2 @@
2fd5af35-b85e-4f03-8eba-524be28d7a5b:
Hello World!: Forty Two

View File

@@ -0,0 +1,2 @@
id: ""
title: ""

View File

@@ -0,0 +1 @@
false

View File

@@ -0,0 +1,6 @@
id: cfda163c-d5c1-44a2-909b-5d2ce3a31979
title: The Traveler
author:
first_name: John
last_name: Twelve Hawks
year: 2005

View File

@@ -0,0 +1 @@
42

View File

@@ -0,0 +1,2 @@
id: cfda163c-d5c1-44a2-909b-5d2ce3a31979
title: The Traveler

View File

@@ -0,0 +1 @@
hello world

View File

@@ -0,0 +1 @@
true

View File

@@ -0,0 +1,2 @@
2fd5af35-b85e-4f03-8eba-524be28d7a5b:
Hello World!: Forty Two

View File

@@ -0,0 +1,3 @@
id: ""
title: ""
author: null

View File

@@ -0,0 +1 @@
false

View File

@@ -0,0 +1,6 @@
id: 10eec54d-e30a-4428-be18-01095d889126
title: Time Travel
author:
first_name: Doc
last_name: Brown
date: 2021-10-27T22:30:34Z

View File

@@ -0,0 +1 @@
42

View File

@@ -0,0 +1,2 @@
id: 10eec54d-e30a-4428-be18-01095d889126
title: Time Travel

View File

@@ -0,0 +1 @@
hello world

View File

@@ -0,0 +1 @@
true

View File

@@ -0,0 +1,3 @@
{
"2fd5af35-b85e-4f03-8eba-524be28d7a5b": "Hello World!=Forty Two"
}

View File

@@ -0,0 +1,4 @@
{
"id": "",
"title": ""
}

View File

@@ -0,0 +1 @@
false

View File

@@ -0,0 +1,9 @@
{
"id": "cfda163c-d5c1-44a2-909b-5d2ce3a31979",
"title": "The Traveler",
"author": {
"first_name": "John",
"last_name": "Twelve Hawks"
},
"year": 2005
}

View File

@@ -0,0 +1 @@
42

View File

@@ -0,0 +1,4 @@
{
"id": "cfda163c-d5c1-44a2-909b-5d2ce3a31979",
"title": "The Traveler"
}

View File

@@ -0,0 +1 @@
"hello world"

View File

@@ -0,0 +1 @@
true

View File

@@ -0,0 +1,3 @@
{
"2fd5af35-b85e-4f03-8eba-524be28d7a5b": "Hello World!=Forty Two"
}

View File

@@ -0,0 +1,5 @@
{
"id": "",
"title": "",
"author": null
}

View File

@@ -0,0 +1 @@
false

View File

@@ -0,0 +1,9 @@
{
"id": "10eec54d-e30a-4428-be18-01095d889126",
"title": "Time Travel",
"author": {
"first_name": "Doc",
"last_name": "Brown"
},
"date": "2021-10-27T22:30:34Z"
}

View File

@@ -0,0 +1 @@
42

View File

@@ -0,0 +1,4 @@
{
"id": "10eec54d-e30a-4428-be18-01095d889126",
"title": "Time Travel"
}

View File

@@ -0,0 +1 @@
"hello world"

View File

@@ -0,0 +1 @@
true

View File

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

View File

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

View File

@@ -0,0 +1 @@
<bool>false</bool>

View File

@@ -0,0 +1,9 @@
<Book>
<id>cfda163c-d5c1-44a2-909b-5d2ce3a31979</id>
<title>The Traveler</title>
<author>
<first_name>John</first_name>
<last_name>Twelve Hawks</last_name>
</author>
<year>2005</year>
</Book>

View File

@@ -0,0 +1 @@
<int>42</int>

View File

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

View File

@@ -0,0 +1 @@
<string>hello world</string>

View File

@@ -0,0 +1 @@
<bool>true</bool>

View File

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

View File

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

View File

@@ -0,0 +1 @@
<bool>false</bool>

View File

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

View File

@@ -0,0 +1 @@
<int>42</int>

View File

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

View File

@@ -0,0 +1 @@
<string>hello world</string>

View File

@@ -0,0 +1 @@
<bool>true</bool>

View File

@@ -0,0 +1,2 @@
2fd5af35-b85e-4f03-8eba-524be28d7a5b:
Hello World!: Forty Two

View File

@@ -0,0 +1,2 @@
id: ""
title: ""

View File

@@ -0,0 +1 @@
false

View File

@@ -0,0 +1,6 @@
id: cfda163c-d5c1-44a2-909b-5d2ce3a31979
title: The Traveler
author:
first_name: John
last_name: Twelve Hawks
year: 2005

View File

@@ -0,0 +1 @@
42

View File

@@ -0,0 +1,2 @@
id: cfda163c-d5c1-44a2-909b-5d2ce3a31979
title: The Traveler

View File

@@ -0,0 +1 @@
hello world

View File

@@ -0,0 +1 @@
true

View File

@@ -0,0 +1,2 @@
2fd5af35-b85e-4f03-8eba-524be28d7a5b:
Hello World!: Forty Two

View File

@@ -0,0 +1,3 @@
id: ""
title: ""
author: null

View File

@@ -0,0 +1 @@
false

View File

@@ -0,0 +1,6 @@
id: 10eec54d-e30a-4428-be18-01095d889126
title: Time Travel
author:
first_name: Doc
last_name: Brown
date: 2021-10-27T22:30:34Z

View File

@@ -0,0 +1 @@
42

View File

@@ -0,0 +1,2 @@
id: 10eec54d-e30a-4428-be18-01095d889126
title: Time Travel

View File

@@ -0,0 +1 @@
hello world

View File

@@ -0,0 +1 @@
true

View File

@@ -0,0 +1,3 @@
{
"foo_bar": "Hello World!"
}

View File

@@ -0,0 +1,3 @@
<MyBook>
<Foo_Bar>Hello World!</Foo_Bar>
</MyBook>

View File

@@ -0,0 +1 @@
fooBar: Hello World!

View File

@@ -0,0 +1,3 @@
{
"foo_bar": "Hello World!"
}

Some files were not shown because too many files have changed in this diff Show More