mirror of
https://github.com/jimeh/go-golden.git
synced 2026-02-19 11:16:47 +00:00
feat(assert): add marshaling assertion helpers for JSON, YAML and XML
This commit is contained in:
3
testdata/TestAssertJSONMarshaling/custom_marshaling/marshaled_json.golden
vendored
Normal file
3
testdata/TestAssertJSONMarshaling/custom_marshaling/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"2fd5af35-b85e-4f03-8eba-524be28d7a5b": "Hello World!=Forty Two"
|
||||
}
|
||||
4
testdata/TestAssertJSONMarshaling/empty_struct/marshaled_json.golden
vendored
Normal file
4
testdata/TestAssertJSONMarshaling/empty_struct/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"id": "",
|
||||
"title": ""
|
||||
}
|
||||
1
testdata/TestAssertJSONMarshaling/false_bool_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssertJSONMarshaling/false_bool_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
false
|
||||
9
testdata/TestAssertJSONMarshaling/full_struct/marshaled_json.golden
vendored
Normal file
9
testdata/TestAssertJSONMarshaling/full_struct/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"id": "cfda163c-d5c1-44a2-909b-5d2ce3a31979",
|
||||
"title": "The Traveler",
|
||||
"author": {
|
||||
"first_name": "John",
|
||||
"last_name": "Twelve Hawks"
|
||||
},
|
||||
"year": 2005
|
||||
}
|
||||
1
testdata/TestAssertJSONMarshaling/int_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssertJSONMarshaling/int_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
42
|
||||
4
testdata/TestAssertJSONMarshaling/partial_struct/marshaled_json.golden
vendored
Normal file
4
testdata/TestAssertJSONMarshaling/partial_struct/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"id": "cfda163c-d5c1-44a2-909b-5d2ce3a31979",
|
||||
"title": "The Traveler"
|
||||
}
|
||||
1
testdata/TestAssertJSONMarshaling/string_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssertJSONMarshaling/string_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"hello world"
|
||||
1
testdata/TestAssertJSONMarshaling/true_bool_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssertJSONMarshaling/true_bool_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
true
|
||||
3
testdata/TestAssertJSONMarshalingP/custom_marshaling/marshaled_json.golden
vendored
Normal file
3
testdata/TestAssertJSONMarshalingP/custom_marshaling/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"2fd5af35-b85e-4f03-8eba-524be28d7a5b": "Hello World!=Forty Two"
|
||||
}
|
||||
5
testdata/TestAssertJSONMarshalingP/empty_struct/marshaled_json.golden
vendored
Normal file
5
testdata/TestAssertJSONMarshalingP/empty_struct/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": "",
|
||||
"title": "",
|
||||
"author": null
|
||||
}
|
||||
1
testdata/TestAssertJSONMarshalingP/false_bool_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssertJSONMarshalingP/false_bool_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
false
|
||||
9
testdata/TestAssertJSONMarshalingP/full_struct/marshaled_json.golden
vendored
Normal file
9
testdata/TestAssertJSONMarshalingP/full_struct/marshaled_json.golden
vendored
Normal 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"
|
||||
}
|
||||
1
testdata/TestAssertJSONMarshalingP/int_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssertJSONMarshalingP/int_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
42
|
||||
4
testdata/TestAssertJSONMarshalingP/partial_struct/marshaled_json.golden
vendored
Normal file
4
testdata/TestAssertJSONMarshalingP/partial_struct/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"id": "10eec54d-e30a-4428-be18-01095d889126",
|
||||
"title": "Time Travel"
|
||||
}
|
||||
1
testdata/TestAssertJSONMarshalingP/string_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssertJSONMarshalingP/string_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"hello world"
|
||||
1
testdata/TestAssertJSONMarshalingP/true_bool_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssertJSONMarshalingP/true_bool_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
true
|
||||
1
testdata/TestAssertXMLMarshaling/custom_marshaling/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssertXMLMarshaling/custom_marshaling/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<Comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</Comic>
|
||||
4
testdata/TestAssertXMLMarshaling/empty_struct/marshaled_xml.golden
vendored
Normal file
4
testdata/TestAssertXMLMarshaling/empty_struct/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<Book>
|
||||
<id></id>
|
||||
<title></title>
|
||||
</Book>
|
||||
1
testdata/TestAssertXMLMarshaling/false_bool_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssertXMLMarshaling/false_bool_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<bool>false</bool>
|
||||
9
testdata/TestAssertXMLMarshaling/full_struct/marshaled_xml.golden
vendored
Normal file
9
testdata/TestAssertXMLMarshaling/full_struct/marshaled_xml.golden
vendored
Normal 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>
|
||||
1
testdata/TestAssertXMLMarshaling/int_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssertXMLMarshaling/int_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<int>42</int>
|
||||
4
testdata/TestAssertXMLMarshaling/partial_struct/marshaled_xml.golden
vendored
Normal file
4
testdata/TestAssertXMLMarshaling/partial_struct/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<Book>
|
||||
<id>cfda163c-d5c1-44a2-909b-5d2ce3a31979</id>
|
||||
<title>The Traveler</title>
|
||||
</Book>
|
||||
1
testdata/TestAssertXMLMarshaling/string_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssertXMLMarshaling/string_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<string>hello world</string>
|
||||
1
testdata/TestAssertXMLMarshaling/true_bool_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssertXMLMarshaling/true_bool_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<bool>true</bool>
|
||||
1
testdata/TestAssertXMLMarshalingP/custom_marshaling/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssertXMLMarshalingP/custom_marshaling/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<Comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</Comic>
|
||||
4
testdata/TestAssertXMLMarshalingP/empty_struct/marshaled_xml.golden
vendored
Normal file
4
testdata/TestAssertXMLMarshalingP/empty_struct/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<Article>
|
||||
<id></id>
|
||||
<title></title>
|
||||
</Article>
|
||||
1
testdata/TestAssertXMLMarshalingP/false_bool_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssertXMLMarshalingP/false_bool_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<bool>false</bool>
|
||||
9
testdata/TestAssertXMLMarshalingP/full_struct/marshaled_xml.golden
vendored
Normal file
9
testdata/TestAssertXMLMarshalingP/full_struct/marshaled_xml.golden
vendored
Normal 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>
|
||||
1
testdata/TestAssertXMLMarshalingP/int_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssertXMLMarshalingP/int_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<int>42</int>
|
||||
4
testdata/TestAssertXMLMarshalingP/partial_struct/marshaled_xml.golden
vendored
Normal file
4
testdata/TestAssertXMLMarshalingP/partial_struct/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<Book>
|
||||
<id>10eec54d-e30a-4428-be18-01095d889126</id>
|
||||
<title>Time Travel</title>
|
||||
</Book>
|
||||
1
testdata/TestAssertXMLMarshalingP/string_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssertXMLMarshalingP/string_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<string>hello world</string>
|
||||
1
testdata/TestAssertXMLMarshalingP/true_bool_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssertXMLMarshalingP/true_bool_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<bool>true</bool>
|
||||
2
testdata/TestAssertYAMLMarshaling/custom_marshaling/marshaled_yaml.golden
vendored
Normal file
2
testdata/TestAssertYAMLMarshaling/custom_marshaling/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
2fd5af35-b85e-4f03-8eba-524be28d7a5b:
|
||||
Hello World!: Forty Two
|
||||
2
testdata/TestAssertYAMLMarshaling/empty_struct/marshaled_yaml.golden
vendored
Normal file
2
testdata/TestAssertYAMLMarshaling/empty_struct/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
id: ""
|
||||
title: ""
|
||||
1
testdata/TestAssertYAMLMarshaling/false_bool_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssertYAMLMarshaling/false_bool_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
false
|
||||
6
testdata/TestAssertYAMLMarshaling/full_struct/marshaled_yaml.golden
vendored
Normal file
6
testdata/TestAssertYAMLMarshaling/full_struct/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
id: cfda163c-d5c1-44a2-909b-5d2ce3a31979
|
||||
title: The Traveler
|
||||
author:
|
||||
first_name: John
|
||||
last_name: Twelve Hawks
|
||||
year: 2005
|
||||
1
testdata/TestAssertYAMLMarshaling/int_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssertYAMLMarshaling/int_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
42
|
||||
2
testdata/TestAssertYAMLMarshaling/partial_struct/marshaled_yaml.golden
vendored
Normal file
2
testdata/TestAssertYAMLMarshaling/partial_struct/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
id: cfda163c-d5c1-44a2-909b-5d2ce3a31979
|
||||
title: The Traveler
|
||||
1
testdata/TestAssertYAMLMarshaling/string_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssertYAMLMarshaling/string_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
hello world
|
||||
1
testdata/TestAssertYAMLMarshaling/true_bool_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssertYAMLMarshaling/true_bool_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
true
|
||||
2
testdata/TestAssertYAMLMarshalingP/custom_marshaling/marshaled_yaml.golden
vendored
Normal file
2
testdata/TestAssertYAMLMarshalingP/custom_marshaling/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
2fd5af35-b85e-4f03-8eba-524be28d7a5b:
|
||||
Hello World!: Forty Two
|
||||
3
testdata/TestAssertYAMLMarshalingP/empty_struct/marshaled_yaml.golden
vendored
Normal file
3
testdata/TestAssertYAMLMarshalingP/empty_struct/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
id: ""
|
||||
title: ""
|
||||
author: null
|
||||
1
testdata/TestAssertYAMLMarshalingP/false_bool_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssertYAMLMarshalingP/false_bool_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
false
|
||||
6
testdata/TestAssertYAMLMarshalingP/full_struct/marshaled_yaml.golden
vendored
Normal file
6
testdata/TestAssertYAMLMarshalingP/full_struct/marshaled_yaml.golden
vendored
Normal 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
|
||||
1
testdata/TestAssertYAMLMarshalingP/int_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssertYAMLMarshalingP/int_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
42
|
||||
2
testdata/TestAssertYAMLMarshalingP/partial_struct/marshaled_yaml.golden
vendored
Normal file
2
testdata/TestAssertYAMLMarshalingP/partial_struct/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
id: 10eec54d-e30a-4428-be18-01095d889126
|
||||
title: Time Travel
|
||||
1
testdata/TestAssertYAMLMarshalingP/string_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssertYAMLMarshalingP/string_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
hello world
|
||||
1
testdata/TestAssertYAMLMarshalingP/true_bool_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssertYAMLMarshalingP/true_bool_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
true
|
||||
3
testdata/TestAssert_JSONMarshaling/custom_marshaling/marshaled_json.golden
vendored
Normal file
3
testdata/TestAssert_JSONMarshaling/custom_marshaling/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"2fd5af35-b85e-4f03-8eba-524be28d7a5b": "Hello World!=Forty Two"
|
||||
}
|
||||
4
testdata/TestAssert_JSONMarshaling/empty_struct/marshaled_json.golden
vendored
Normal file
4
testdata/TestAssert_JSONMarshaling/empty_struct/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"id": "",
|
||||
"title": ""
|
||||
}
|
||||
1
testdata/TestAssert_JSONMarshaling/false_bool_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssert_JSONMarshaling/false_bool_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
false
|
||||
9
testdata/TestAssert_JSONMarshaling/full_struct/marshaled_json.golden
vendored
Normal file
9
testdata/TestAssert_JSONMarshaling/full_struct/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"id": "cfda163c-d5c1-44a2-909b-5d2ce3a31979",
|
||||
"title": "The Traveler",
|
||||
"author": {
|
||||
"first_name": "John",
|
||||
"last_name": "Twelve Hawks"
|
||||
},
|
||||
"year": 2005
|
||||
}
|
||||
1
testdata/TestAssert_JSONMarshaling/int_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssert_JSONMarshaling/int_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
42
|
||||
4
testdata/TestAssert_JSONMarshaling/partial_struct/marshaled_json.golden
vendored
Normal file
4
testdata/TestAssert_JSONMarshaling/partial_struct/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"id": "cfda163c-d5c1-44a2-909b-5d2ce3a31979",
|
||||
"title": "The Traveler"
|
||||
}
|
||||
1
testdata/TestAssert_JSONMarshaling/string_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssert_JSONMarshaling/string_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"hello world"
|
||||
1
testdata/TestAssert_JSONMarshaling/true_bool_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssert_JSONMarshaling/true_bool_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
true
|
||||
3
testdata/TestAssert_JSONMarshalingP/custom_marshaling/marshaled_json.golden
vendored
Normal file
3
testdata/TestAssert_JSONMarshalingP/custom_marshaling/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"2fd5af35-b85e-4f03-8eba-524be28d7a5b": "Hello World!=Forty Two"
|
||||
}
|
||||
5
testdata/TestAssert_JSONMarshalingP/empty_struct/marshaled_json.golden
vendored
Normal file
5
testdata/TestAssert_JSONMarshalingP/empty_struct/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"id": "",
|
||||
"title": "",
|
||||
"author": null
|
||||
}
|
||||
1
testdata/TestAssert_JSONMarshalingP/false_bool_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssert_JSONMarshalingP/false_bool_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
false
|
||||
9
testdata/TestAssert_JSONMarshalingP/full_struct/marshaled_json.golden
vendored
Normal file
9
testdata/TestAssert_JSONMarshalingP/full_struct/marshaled_json.golden
vendored
Normal 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"
|
||||
}
|
||||
1
testdata/TestAssert_JSONMarshalingP/int_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssert_JSONMarshalingP/int_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
42
|
||||
4
testdata/TestAssert_JSONMarshalingP/partial_struct/marshaled_json.golden
vendored
Normal file
4
testdata/TestAssert_JSONMarshalingP/partial_struct/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"id": "10eec54d-e30a-4428-be18-01095d889126",
|
||||
"title": "Time Travel"
|
||||
}
|
||||
1
testdata/TestAssert_JSONMarshalingP/string_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssert_JSONMarshalingP/string_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"hello world"
|
||||
1
testdata/TestAssert_JSONMarshalingP/true_bool_pointer/marshaled_json.golden
vendored
Normal file
1
testdata/TestAssert_JSONMarshalingP/true_bool_pointer/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
true
|
||||
1
testdata/TestAssert_XMLMarshaling/custom_marshaling/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssert_XMLMarshaling/custom_marshaling/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<Comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</Comic>
|
||||
4
testdata/TestAssert_XMLMarshaling/empty_struct/marshaled_xml.golden
vendored
Normal file
4
testdata/TestAssert_XMLMarshaling/empty_struct/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<Book>
|
||||
<id></id>
|
||||
<title></title>
|
||||
</Book>
|
||||
1
testdata/TestAssert_XMLMarshaling/false_bool_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssert_XMLMarshaling/false_bool_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<bool>false</bool>
|
||||
9
testdata/TestAssert_XMLMarshaling/full_struct/marshaled_xml.golden
vendored
Normal file
9
testdata/TestAssert_XMLMarshaling/full_struct/marshaled_xml.golden
vendored
Normal 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>
|
||||
1
testdata/TestAssert_XMLMarshaling/int_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssert_XMLMarshaling/int_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<int>42</int>
|
||||
4
testdata/TestAssert_XMLMarshaling/partial_struct/marshaled_xml.golden
vendored
Normal file
4
testdata/TestAssert_XMLMarshaling/partial_struct/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<Book>
|
||||
<id>cfda163c-d5c1-44a2-909b-5d2ce3a31979</id>
|
||||
<title>The Traveler</title>
|
||||
</Book>
|
||||
1
testdata/TestAssert_XMLMarshaling/string_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssert_XMLMarshaling/string_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<string>hello world</string>
|
||||
1
testdata/TestAssert_XMLMarshaling/true_bool_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssert_XMLMarshaling/true_bool_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<bool>true</bool>
|
||||
1
testdata/TestAssert_XMLMarshalingP/custom_marshaling/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssert_XMLMarshalingP/custom_marshaling/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<Comic id="2fd5af35-b85e-4f03-8eba-524be28d7a5b" issue="Forty Two">Hello World!</Comic>
|
||||
4
testdata/TestAssert_XMLMarshalingP/empty_struct/marshaled_xml.golden
vendored
Normal file
4
testdata/TestAssert_XMLMarshalingP/empty_struct/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<Article>
|
||||
<id></id>
|
||||
<title></title>
|
||||
</Article>
|
||||
1
testdata/TestAssert_XMLMarshalingP/false_bool_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssert_XMLMarshalingP/false_bool_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<bool>false</bool>
|
||||
9
testdata/TestAssert_XMLMarshalingP/full_struct/marshaled_xml.golden
vendored
Normal file
9
testdata/TestAssert_XMLMarshalingP/full_struct/marshaled_xml.golden
vendored
Normal 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>
|
||||
1
testdata/TestAssert_XMLMarshalingP/int_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssert_XMLMarshalingP/int_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<int>42</int>
|
||||
4
testdata/TestAssert_XMLMarshalingP/partial_struct/marshaled_xml.golden
vendored
Normal file
4
testdata/TestAssert_XMLMarshalingP/partial_struct/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<Book>
|
||||
<id>10eec54d-e30a-4428-be18-01095d889126</id>
|
||||
<title>Time Travel</title>
|
||||
</Book>
|
||||
1
testdata/TestAssert_XMLMarshalingP/string_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssert_XMLMarshalingP/string_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<string>hello world</string>
|
||||
1
testdata/TestAssert_XMLMarshalingP/true_bool_pointer/marshaled_xml.golden
vendored
Normal file
1
testdata/TestAssert_XMLMarshalingP/true_bool_pointer/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<bool>true</bool>
|
||||
2
testdata/TestAssert_YAMLMarshaling/custom_marshaling/marshaled_yaml.golden
vendored
Normal file
2
testdata/TestAssert_YAMLMarshaling/custom_marshaling/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
2fd5af35-b85e-4f03-8eba-524be28d7a5b:
|
||||
Hello World!: Forty Two
|
||||
2
testdata/TestAssert_YAMLMarshaling/empty_struct/marshaled_yaml.golden
vendored
Normal file
2
testdata/TestAssert_YAMLMarshaling/empty_struct/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
id: ""
|
||||
title: ""
|
||||
1
testdata/TestAssert_YAMLMarshaling/false_bool_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssert_YAMLMarshaling/false_bool_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
false
|
||||
6
testdata/TestAssert_YAMLMarshaling/full_struct/marshaled_yaml.golden
vendored
Normal file
6
testdata/TestAssert_YAMLMarshaling/full_struct/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
id: cfda163c-d5c1-44a2-909b-5d2ce3a31979
|
||||
title: The Traveler
|
||||
author:
|
||||
first_name: John
|
||||
last_name: Twelve Hawks
|
||||
year: 2005
|
||||
1
testdata/TestAssert_YAMLMarshaling/int_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssert_YAMLMarshaling/int_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
42
|
||||
2
testdata/TestAssert_YAMLMarshaling/partial_struct/marshaled_yaml.golden
vendored
Normal file
2
testdata/TestAssert_YAMLMarshaling/partial_struct/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
id: cfda163c-d5c1-44a2-909b-5d2ce3a31979
|
||||
title: The Traveler
|
||||
1
testdata/TestAssert_YAMLMarshaling/string_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssert_YAMLMarshaling/string_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
hello world
|
||||
1
testdata/TestAssert_YAMLMarshaling/true_bool_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssert_YAMLMarshaling/true_bool_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
true
|
||||
2
testdata/TestAssert_YAMLMarshalingP/custom_marshaling/marshaled_yaml.golden
vendored
Normal file
2
testdata/TestAssert_YAMLMarshalingP/custom_marshaling/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
2fd5af35-b85e-4f03-8eba-524be28d7a5b:
|
||||
Hello World!: Forty Two
|
||||
3
testdata/TestAssert_YAMLMarshalingP/empty_struct/marshaled_yaml.golden
vendored
Normal file
3
testdata/TestAssert_YAMLMarshalingP/empty_struct/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
id: ""
|
||||
title: ""
|
||||
author: null
|
||||
1
testdata/TestAssert_YAMLMarshalingP/false_bool_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssert_YAMLMarshalingP/false_bool_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
false
|
||||
6
testdata/TestAssert_YAMLMarshalingP/full_struct/marshaled_yaml.golden
vendored
Normal file
6
testdata/TestAssert_YAMLMarshalingP/full_struct/marshaled_yaml.golden
vendored
Normal 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
|
||||
1
testdata/TestAssert_YAMLMarshalingP/int_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssert_YAMLMarshalingP/int_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
42
|
||||
2
testdata/TestAssert_YAMLMarshalingP/partial_struct/marshaled_yaml.golden
vendored
Normal file
2
testdata/TestAssert_YAMLMarshalingP/partial_struct/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
id: 10eec54d-e30a-4428-be18-01095d889126
|
||||
title: Time Travel
|
||||
1
testdata/TestAssert_YAMLMarshalingP/string_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssert_YAMLMarshalingP/string_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
hello world
|
||||
1
testdata/TestAssert_YAMLMarshalingP/true_bool_pointer/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestAssert_YAMLMarshalingP/true_bool_pointer/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
true
|
||||
3
testdata/TestExampleMyBookMarshaling/marshaled_json.golden
vendored
Normal file
3
testdata/TestExampleMyBookMarshaling/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo_bar": "Hello World!"
|
||||
}
|
||||
3
testdata/TestExampleMyBookMarshaling/marshaled_xml.golden
vendored
Normal file
3
testdata/TestExampleMyBookMarshaling/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<MyBook>
|
||||
<Foo_Bar>Hello World!</Foo_Bar>
|
||||
</MyBook>
|
||||
1
testdata/TestExampleMyBookMarshaling/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestExampleMyBookMarshaling/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
fooBar: Hello World!
|
||||
3
testdata/TestExampleMyBookMarshalingP/marshaled_json.golden
vendored
Normal file
3
testdata/TestExampleMyBookMarshalingP/marshaled_json.golden
vendored
Normal 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
Reference in New Issue
Block a user