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:
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>
|
||||
Reference in New Issue
Block a user