focusedAndNotIgnored looks up a slice of ids against a map of focused/ignored locations. The map only contains locations that are explicitly focused or ignored. Returns whether there is at least one focused location but no ignored locations.
(locs []*Location, m map[uint64]bool)
| 231 | // explicitly focused or ignored. Returns whether there is at least |
| 232 | // one focused location but no ignored locations. |
| 233 | func focusedAndNotIgnored(locs []*Location, m map[uint64]bool) bool { |
| 234 | var f bool |
| 235 | for _, loc := range locs { |
| 236 | if focus, focusOrIgnore := m[loc.ID]; focusOrIgnore { |
| 237 | if focus { |
| 238 | // Found focused location. Must keep searching in case there |
| 239 | // is an ignored one as well. |
| 240 | f = true |
| 241 | } else { |
| 242 | // Found ignored location. Can return false right away. |
| 243 | return false |
| 244 | } |
| 245 | } |
| 246 | } |
| 247 | return f |
| 248 | } |
| 249 | |
| 250 | // TagMatch selects tags for filtering |
| 251 | type TagMatch func(s *Sample) bool |
no outgoing calls
no test coverage detected
searching dependent graphs…