DiffMessage creates a diff dump message for test failures.
(context string, actual interface{}, expected interface{})
| 27 | |
| 28 | // DiffMessage creates a diff dump message for test failures. |
| 29 | func DiffMessage(context string, actual interface{}, expected interface{}) string { |
| 30 | return fmt.Sprintf("%s: \ngot %v, \nwanted %v", context, actual, expected) |
| 31 | } |
| 32 | |
| 33 | func stripWhitespace(a string) string { |
| 34 | a = strings.Replace(a, " ", "", -1) |
no outgoing calls