(needle string)
| 228 | } |
| 229 | |
| 230 | func (self *app) filterWithString(needle string) { |
| 231 | if needle == "" { |
| 232 | self.filteredTests = self.allTests |
| 233 | } else { |
| 234 | self.filteredTests = lo.Filter(self.allTests, func(test *components.IntegrationTest, _ int) bool { |
| 235 | return strings.Contains(test.Name(), needle) |
| 236 | }) |
| 237 | } |
| 238 | |
| 239 | self.renderTests() |
| 240 | self.g.Update(func(g *gocui.Gui) error { return nil }) |
| 241 | } |
| 242 | |
| 243 | func (self *app) renderTests() { |
| 244 | self.listView.Clear() |
no test coverage detected