Lines Matching refs:counters
42 counters = {}
45 if name in counters:
46 counters[name] += 1
48 counters[name] = 1
49 return counters
88 counters = self._collect_reviewers(num_tries, "rust/crates/libc")
89 self.assertEqual(len(counters), len(reviewers.RUST_REVIEWERS))
90 for n in counters.values():
92 self.assertEqual(sum(counters.values()), num_tries)
101 counters = self._collect_reviewers(20, "external/rust/crates/p1")
102 self.assertEqual(len(counters), 1)
103 self.assertTrue(counters["r=x@g.com"], 20)
104 counters = self._collect_reviewers(20, "external/rust/crates/p_any")
105 self.assertEqual(len(counters), 2)
106 self.assertGreater(counters["r=x@g.com"], 2)
107 self.assertGreater(counters["r=y@g.com"], 2)
108 self.assertTrue(counters["r=x@g.com"] + counters["r=y@g.com"], 20)
109 counters = self._collect_reviewers(20, "external/rust/crates/p_all")
111 self.assertEqual(counters["r=x@g.com,r=y@g.com,r=z@g"], 20)