()
| 38 | } |
| 39 | |
| 40 | func ExampleReporter() { |
| 41 | x, y := MakeGatewayInfo() |
| 42 | |
| 43 | var r DiffReporter |
| 44 | cmp.Equal(x, y, cmp.Reporter(&r)) |
| 45 | fmt.Print(r.String()) |
| 46 | |
| 47 | // Output: |
| 48 | // {cmp_test.Gateway}.IPAddress: |
| 49 | // -: 192.168.0.1 |
| 50 | // +: 192.168.0.2 |
| 51 | // |
| 52 | // {cmp_test.Gateway}.Clients[4].IPAddress: |
| 53 | // -: 192.168.0.219 |
| 54 | // +: 192.168.0.221 |
| 55 | // |
| 56 | // {cmp_test.Gateway}.Clients[5->?]: |
| 57 | // -: {Hostname:americano IPAddress:192.168.0.188 LastSeen:2009-11-10 23:03:05 +0000 UTC} |
| 58 | // +: <invalid reflect.Value> |
| 59 | } |
nothing calls this directly
no test coverage detected