(t *testing.T, l *Loader)
| 234 | } |
| 235 | |
| 236 | func testSortRules(t *testing.T, l *Loader) { |
| 237 | l.activeRules[1] = "001-deny-chrome" |
| 238 | l.activeRules[2] = "000-allow-chrome" |
| 239 | l.sortRules() |
| 240 | if l.activeRules[1] != "000-allow-chrome" { |
| 241 | t.Error("Rules not in order (1): ", l.activeRules) |
| 242 | } |
| 243 | if l.activeRules[2] != "001-deny-chrome" { |
| 244 | t.Error("Rules not in order (2): ", l.activeRules) |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | func testFindMatch(t *testing.T, l *Loader) { |
| 249 | conn.Process.Path = "/opt/google/chrome/chrome" |
no test coverage detected