FailImmediatelyRegistry.java

1
package fr.sii.ogham.testing.assertion.util;
2
3
/**
4
 * The aim of this registry is to fail fast (do not try all assertions if the
5
 * first one is KO).
6
 * 
7
 * It doesn't register the functions but immediately execute them.
8
 * 
9
 * @author Aurélien Baudet
10
 *
11
 */
12
public class FailImmediatelyRegistry implements AssertionRegistry {
13
	public <E extends Exception> void register(Executable<E> executable) throws E {
14 6 1. register : removed call to fr/sii/ogham/testing/assertion/util/Executable::run → SURVIVED
2. register : removed call to fr/sii/ogham/testing/assertion/util/Executable::run → SURVIVED
3. register : removed call to fr/sii/ogham/testing/assertion/util/Executable::run → SURVIVED
4. register : removed call to fr/sii/ogham/testing/assertion/util/Executable::run → NO_COVERAGE
5. register : removed call to fr/sii/ogham/testing/assertion/util/Executable::run → TIMED_OUT
6. register : removed call to fr/sii/ogham/testing/assertion/util/Executable::run → KILLED
		executable.run();
15
	}
16
17
	public void execute() {
18
		// nothing to do
19
	}
20
}

Mutations

14

1.1
Location : register
Killed by : none
removed call to fr/sii/ogham/testing/assertion/util/Executable::run → SURVIVED

2.2
Location : register
Killed by : oghamtesting.it.assertion.FluentSmsAssertionsSpec
removed call to fr/sii/ogham/testing/assertion/util/Executable::run → KILLED

3.3
Location : register
Killed by : none
removed call to fr/sii/ogham/testing/assertion/util/Executable::run → SURVIVED

4.4
Location : register
Killed by : none
removed call to fr/sii/ogham/testing/assertion/util/Executable::run → TIMED_OUT

5.5
Location : register
Killed by : none
removed call to fr/sii/ogham/testing/assertion/util/Executable::run → SURVIVED

6.6
Location : register
Killed by : none
removed call to fr/sii/ogham/testing/assertion/util/Executable::run → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT OGHAM