ThatSlice returns an OnSlice for assertions on slice type objects. Calling this with a non slice type will result in panics.
(slice interface{})
| 30 | // ThatSlice returns an OnSlice for assertions on slice type objects. |
| 31 | // Calling this with a non slice type will result in panics. |
| 32 | func (a Assertion) ThatSlice(slice interface{}) OnSlice { |
| 33 | return OnSlice{Assertion: a, slice: slice} |
| 34 | } |
| 35 | |
| 36 | // IsEmpty asserts that the slice was of length 0 |
| 37 | func (o OnSlice) IsEmpty() bool { |
no outgoing calls