(m string, a, b interface{})
| 30 | ) |
| 31 | |
| 32 | func getErrorMessage(m string, a, b interface{}) string { |
| 33 | return fmt.Sprintf(`%s. |
| 34 | Actual: |
| 35 | ======================== |
| 36 | %+v |
| 37 | ======================== |
| 38 | |
| 39 | Expected: |
| 40 | ======================== |
| 41 | %+v |
| 42 | ======================== |
| 43 | |
| 44 | %s`, m, a, b, string(debug.Stack())) |
| 45 | } |
| 46 | |
| 47 | func checkEqual(a, b interface{}, message string) (bool, string) { |
| 48 | if a == b { |
no outgoing calls
no test coverage detected