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/TestExampleMyBookMarshalingTabular/empty/marshaled_json.golden
vendored
Normal file
1
testdata/TestExampleMyBookMarshalingTabular/empty/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
1
testdata/TestExampleMyBookMarshalingTabular/empty/marshaled_xml.golden
vendored
Normal file
1
testdata/TestExampleMyBookMarshalingTabular/empty/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<MyBook></MyBook>
|
||||
1
testdata/TestExampleMyBookMarshalingTabular/empty/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestExampleMyBookMarshalingTabular/empty/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{}
|
||||
3
testdata/TestExampleMyBookMarshalingTabular/full/marshaled_json.golden
vendored
Normal file
3
testdata/TestExampleMyBookMarshalingTabular/full/marshaled_json.golden
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"foo_bar": "Hello World!"
|
||||
}
|
||||
3
testdata/TestExampleMyBookMarshalingTabular/full/marshaled_xml.golden
vendored
Normal file
3
testdata/TestExampleMyBookMarshalingTabular/full/marshaled_xml.golden
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<MyBook>
|
||||
<Foo_Bar>Hello World!</Foo_Bar>
|
||||
</MyBook>
|
||||
1
testdata/TestExampleMyBookMarshalingTabular/full/marshaled_yaml.golden
vendored
Normal file
1
testdata/TestExampleMyBookMarshalingTabular/full/marshaled_yaml.golden
vendored
Normal file
@@ -0,0 +1 @@
|
||||
fooBar: Hello World!
|
||||
Reference in New Issue
Block a user