Lines Matching refs:result_str
78 …def check_two_threads(self, result_str, thread_id_1, name_1, thread_id_2, name_2, start_idx, end_i… argument
80 self.assertEqual(result_str.count("thread #{0}".format(thread_id_1)), 1, "One for thread 1")
81 self.assertEqual(result_str.count("thread #{0}".format(thread_id_2)), 1, "One for thread 2")
83 self.assertEqual(result_str.count(name_1), 10, "Found 10 of {0}".format(name_1))
84 self.assertEqual(result_str.count(name_2), 10, "Found 10 of {0}".format(name_1))
86 … self.assertEqual(result_str.count("count={0}".format(start_idx)), 2, "Two instances of start_idx")
87 …self.assertEqual(result_str.count("count={0}".format(start_idx-1)), 0, "No instances of start_idx …
89 … self.assertEqual(result_str.count("count={0}".format(end_idx)), 2, "Two instances of end_idx")
90 … self.assertEqual(result_str.count("count={0}".format(end_idx+1)), 0, "No instances after end idx")
146 result_str = result.GetOutput()
147 self.check_two_threads(result_str, thread_id_1, name_1, thread_id_2, name_2, 23, 32)
153 result_str = result.GetOutput()
154 self.check_two_threads(result_str, thread_id_1, name_1, thread_id_2, name_2, 13, 22)