ContainsAll is variadic function which takes slice of strings as param and checks if they are present in input and returns boolean value accordingly
(check ...string)
| 154 | // ContainsAll is variadic function which takes slice of strings as param and checks if they are present |
| 155 | // in input and returns boolean value accordingly |
| 156 | func (i *input) ContainsAll(check ...string) bool { |
| 157 | input := getInput(*i) |
| 158 | for _, item := range check { |
| 159 | if !strings.Contains(input, item) { |
| 160 | return false |
| 161 | } |
| 162 | } |
| 163 | return true |
| 164 | } |
| 165 | |
| 166 | // Delimited is variadic function that takes two params delimiter and slice of strings i.e rule. It joins |
| 167 | // the string by passed delimeter. Rule param helps to omit character you want to omit from string. By |
nothing calls this directly
no test coverage detected