DoesNotContain asserts that the supplied string does not contain substr.
(substr string)
| 78 | |
| 79 | // DoesNotContain asserts that the supplied string does not contain substr. |
| 80 | func (o OnString) DoesNotContain(substr string) bool { |
| 81 | return o.Compare(o.value, "does not contain", substr).Test(!strings.Contains(o.value, substr)) |
| 82 | } |
| 83 | |
| 84 | // HasPrefix asserts that the supplied string start with substr. |
| 85 | func (o OnString) HasPrefix(substr string) bool { |