Test the median pick by tokens, the name of a silent claude and the environment git runs in
CI / tests (pull_request) Successful in 4m13s
CI / tests (pull_request) Successful in 4m13s
This commit is contained in:
@@ -138,8 +138,8 @@ class DigestTest(unittest.TestCase):
|
||||
self.assertIn("### bug-2-base-1, the passing run with the median tokens, 10", held.splitlines())
|
||||
|
||||
def test_the_median_is_by_tokens_whatever_the_order_the_runs_ran_in(self):
|
||||
runs = [Run("bug-2-base-1", True, 30, b""), Run("bug-2-head-1", True, 10, b""), Run("bug-2-base-2", True, 20, b"")]
|
||||
self.assertEqual(digest([], [Bug("2: a.go:1:1 X", "a.go", "boom", runs)], lambda path: True).splitlines()[-2:], ["### bug-2-base-2, the passing run with the median tokens, 20", ""])
|
||||
runs = [Run("bug-2-base-1", True, 20, b""), Run("bug-2-head-1", True, 10, b""), Run("bug-2-base-2", True, 30, b"")]
|
||||
self.assertEqual(digest([], [Bug("2: a.go:1:1 X", "a.go", "boom", runs)], lambda path: True).splitlines()[-2:], ["### bug-2-base-1, the passing run with the median tokens, 20", ""])
|
||||
|
||||
def test_a_bug_no_run_fixed_shows_the_failing_trace_alone_and_says_where_no_file_misled(self):
|
||||
held = digest([], [Bug("3: a.go:1:1 X", "a.go", "boom\nat line 2", [Run("bug-3-base-1", False, 10, reading("a.go")), Run("bug-3-head-1", False, 10, reading("a.go"))])], lambda path: True)
|
||||
|
||||
Reference in New Issue
Block a user