(v value)
| 37 | } |
| 38 | |
| 39 | func stubValue(v value) string { |
| 40 | switch v.Value().(type) { |
| 41 | case map[string]interface{}: |
| 42 | return "{...}" |
| 43 | case []interface{}: |
| 44 | return "[...]" |
| 45 | default: |
| 46 | return "..." |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | func formatDiff(d Diff, path []interface{}, long bool) string { |
| 51 | switch v := d.(type) { |
no test coverage detected