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