(object interface{})
| 56 | } |
| 57 | |
| 58 | func isNil(object interface{}) bool { |
| 59 | if object == nil { |
| 60 | return true |
| 61 | } |
| 62 | |
| 63 | value := reflect.ValueOf(object) |
| 64 | kind := value.Kind() |
| 65 | if kind >= reflect.Chan && kind <= reflect.Slice && value.IsNil() { |
| 66 | return true |
| 67 | } |
| 68 | |
| 69 | return false |
| 70 | } |
| 71 | |
| 72 | func formattedLog(t *testing.T, fmt string, args ...interface{}) { |
| 73 | _, file, line, _ := runtime.Caller(2) |