Approval-based snapshot testing library for Go (mirror)
at main 27 lines 630 B view raw
1--- 2title: Structure with Pointers 3test_name: TestStructureWithPointers 4file_name: shutter_test.go 5version: 0.1.0 6--- 7shutter_test.Person{ 8 Name: "John", 9 Age: 35, 10 Address: &shutter_test.Address{ 11 Street: "123 Main St", 12 City: "Boston", 13 Zip: "02101", 14 }, 15 Manager: &shutter_test.Person{ 16 Name: "Jane", 17 Age: 30, 18 Address: (*shutter_test.Address)(<already shown>), 19 Manager: (*shutter_test.Person)(nil), 20 Friends: []*shutter_test.Person(nil), 21 Email: &string("jane@example.com"), 22 }, 23 Friends: []*shutter_test.Person{ 24 (*shutter_test.Person)(<already shown>), 25 }, 26 Email: (*string)(nil), 27}