(t *testing.T, x, y interface{}, m string)
| 92 | } |
| 93 | |
| 94 | func expectDeepEqual(t *testing.T, x, y interface{}, m string) bool { |
| 95 | if reflect.DeepEqual(x, y) { |
| 96 | return true |
| 97 | } |
| 98 | if reflect.TypeOf(x).Kind() == reflect.Slice && reflect.ValueOf(y).Len() == 0 && reflect.ValueOf(x).Len() == 0 { |
| 99 | return true |
| 100 | } |
| 101 | t.Errorf("%s doesn't match: %v, %v\n", m, x, y) |
| 102 | return false |
| 103 | } |
| 104 | |
| 105 | func compareClosures(t *testing.T, a, b *luaClosure) { |
| 106 | expectEqual(t, a.upValueCount(), b.upValueCount(), "upvalue count") |
no test coverage detected
searching dependent graphs…