sqt/SQ-2023-H6/answer.md

28 lines
714 B
Markdown
Raw Normal View History

2023-04-18 10:43:07 +00:00
---
title: Software Quality & Testing -- Graded Assignment 6
author: Claudio Maggioni
geometry: margin=2.5cm,bottom=3cm
---
# Are there mutants that you cannot kill?
Yes.
# If yes, why and which are mutants that you cannot kill?
The mutants I cannot kill are:
```
replaced boolean return with true for org/usi/sq/util/CircularFifoQueue::offer → SURVIVED
```
at line 135 (which is impossible to kill since the parent method always returns true, thus
the mutant is semantically equivalent to the implementation), and:
```
changed conditional boundary → SURVIVED
changed conditional boundary → SURVIVED
negated conditional → SURVIVED
```
for `if (start < lastReturnedIndex && pos < end)` at line 251.