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