TestProof report
pipeline #2988315191 · job #17459095513 · commit 8430eff7 · generated 2026-10-26T06:27:35+00:00 · TestProof 0.1.0
Mutation score
50% 4/8 killed
Survived
4
Inconclusive
0
Baseline tests
15 passed
Scope
Mode diff against
57c8d573c517d87e38c49d5a4b1ecb5c6212c8e8 · app/orders.py: calculate_discountTest command:
python -m unittest discover -s tests -t .Mutants
| Mutant | Status | Caught by |
|---|---|---|
calculate_discount.comparison_boundary.L21 app/orders.py:21 · comparison_boundary
test output · all tests passed against the mutant · 0.729s............... ---------------------------------------------------------------------- Ran 15 tests in 0.003s OK digest sha256:1bd4dcdaae49b4741f051d2869457f8aeee0f87f12481216508f145c9fe9fa72 | SURVIVED | — |
calculate_discount.guard_removal.L21 app/orders.py:21 · guard_removal
test output · 1 test(s) failed against the mutant · 0.724s.F.............
======================================================================
FAIL: test_negative_total_rejected (tests.test_orders.CalculateDiscountTests.test_negative_total_rejected)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/testproof-mutant-z18z1rj1/src/tests/test_orders.py", line 17, in test_negative_total_rejected
with self.assertRaises(ValueError):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: ValueError not raised
----------------------------------------------------------------------
Ran 15 tests in 0.007s
FAILED (failures=1)digest sha256:f348e4295c4fd61ebda309892b5602357a764124601349229547c4bad1a87d37 | KILLED | test_negative_total_rejected |
calculate_discount.constant_perturbation.L21 app/orders.py:21 · constant_perturbation
test output · all tests passed against the mutant · 0.724s............... ---------------------------------------------------------------------- Ran 15 tests in 0.004s OK digest sha256:47afe505e581dbb6f3e6ed1575cca4af2a3d1f9284e16f876f101f26935b31c2 | SURVIVED | — |
calculate_discount.comparison_boundary.L23 app/orders.py:23 · comparison_boundary
test output · all tests passed against the mutant · 0.723s............... ---------------------------------------------------------------------- Ran 15 tests in 0.008s OK digest sha256:8f3349bdc073d7c54c2f65ee95716fdcbaa5609801dcc44b369be56ab5ac3b70 | SURVIVED | — |
calculate_discount.membership_flip.L23 app/orders.py:23 · membership_flip
test output · 2 test(s) failed against the mutant · 0.714sF..F...........
======================================================================
FAIL: test_invalid_code_gets_nothing (tests.test_orders.CalculateDiscountTests.test_invalid_code_gets_nothing)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/testproof-mutant-0pjkyr5i/src/tests/test_orders.py", line 11, in test_invalid_code_gets_nothing
self.assertEqual(calculate_discount(150, "BOGUS"), 0.0)
AssertionError: 15.0 != 0.0
======================================================================
FAIL: test_valid_code_on_large_order (tests.test_orders.CalculateDiscountTests.test_valid_code_on_large_order)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/testproof-mutant-0pjkyr5i/src/tests/test_orders.py", line 8, in test_valid_code_on_large_order
self.assertEqual(calculate_discount(150, "SAVE10"), 15.0)
AssertionError: 0.0 != 15.0
----------------------------------------------------------------------
Ran 15 tests in 0.008s
FAILED (failures=2)digest sha256:f272dd72f0aa2ec444621cbaf8072eff1ab7dd29cc989ffe62e0c26c680b7c41 | KILLED | test_invalid_code_gets_nothingtest_valid_code_on_large_order |
calculate_discount.boolean_flip.L25 app/orders.py:25 · boolean_flip
test output · 1 test(s) failed against the mutant · 0.723s...F...........
======================================================================
FAIL: test_valid_code_on_large_order (tests.test_orders.CalculateDiscountTests.test_valid_code_on_large_order)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/testproof-mutant-ktppjizz/src/tests/test_orders.py", line 8, in test_valid_code_on_large_order
self.assertEqual(calculate_discount(150, "SAVE10"), 15.0)
AssertionError: 22.5 != 15.0
----------------------------------------------------------------------
Ran 15 tests in 0.004s
FAILED (failures=1)digest sha256:c790b400308b5cf81246d023659dbea1ed235b795fca5107c812d43d47267d37 | KILLED | test_valid_code_on_large_order |
calculate_discount.arithmetic_swap.L26 app/orders.py:26 · arithmetic_swap
test output · all tests passed against the mutant · 0.715s............... ---------------------------------------------------------------------- Ran 15 tests in 0.009s OK digest sha256:99973a9dbf843ad63371b3dbca262d90bd17c356acb281c2aa067e49d27937e8 | SURVIVED | — |
calculate_discount.arithmetic_swap.L27 app/orders.py:27 · arithmetic_swap
test output · 1 test(s) failed against the mutant · 0.721s...F...........
======================================================================
FAIL: test_valid_code_on_large_order (tests.test_orders.CalculateDiscountTests.test_valid_code_on_large_order)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/testproof-mutant-jg59pwal/src/tests/test_orders.py", line 8, in test_valid_code_on_large_order
self.assertEqual(calculate_discount(150, "SAVE10"), 15.0)
AssertionError: 1500.0 != 15.0
----------------------------------------------------------------------
Ran 15 tests in 0.003s
FAILED (failures=1)digest sha256:5ba35d6dbedc37bb1404cbcfb78327cff4b2b007b2dabeedc7fc27ab618214ba | KILLED | test_valid_code_on_large_order |
A mutant is KILLED only when at least one named test failed against it, SURVIVED when the whole suite passed,
and INCONCLUSIVE on timeouts or errors with no failing test. Score = killed / (killed + survived); inconclusive mutants are excluded and shown separately.
Statuses come from running the real test suite, never from a language model.