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