In asserts that item is contained within list.
(list interface{}, item interface{}, args ...interface{})
| 105 | |
| 106 | // In asserts that item is contained within list. |
| 107 | func (is *I) In(list interface{}, item interface{}, args ...interface{}) { |
| 108 | ok, found := containsElement(list, item) |
| 109 | if !ok { |
| 110 | is.logf("%s is not a list%s", is.valWithType(list), is.formatArgs(args)) |
| 111 | } else if !found { |
| 112 | is.logf("%v not in %+v%s", item, list, is.formatArgs(args)) |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | // NotIn asserts that item is not contained within list |
| 117 | func (is *I) NotIn(list interface{}, item interface{}, args ...interface{}) { |