(cond bool, f string, a ...interface{})
| 137 | } |
| 138 | |
| 139 | func Assertf(cond bool, f string, a ...interface{}) { |
| 140 | if !cond { |
| 141 | msg := fmt.Sprintf(f, a...) |
| 142 | _panic(msg) |
| 143 | } |
| 144 | } |
| 145 | |
| 146 | func AssertMutexLocked(m *sync.Mutex) { |
| 147 | state := reflect.ValueOf(m).Elem().FieldByName("state") |
no test coverage detected