-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #5007: increase coverage of pitest-checks-design to 100%
- Loading branch information
Showing
12 changed files
with
162 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ycrawl/tools/checkstyle/checks/design/innertypelast/InputInnerTypeLastClassRootClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.design.innertypelast; | ||
|
||
public enum InputInnerTypeLastClassRootClass { | ||
|
||
ALWAYS(Bits.YES), NEVER(Bits.NO); | ||
|
||
private interface Bits { | ||
public static final int YES = 1; | ||
|
||
public static final int NO = 4; | ||
} | ||
|
||
private final int bits; | ||
|
||
private InputInnerTypeLastClassRootClass(int bits) { | ||
this.bits = bits; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
.../tools/checkstyle/checks/design/mutableexception/InputMutableExceptionMultipleInputs.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.design.mutableexception; | ||
|
||
public class InputMutableExceptionMultipleInputs { | ||
|
||
public class BarError extends Throwable { | ||
private int errorCode; | ||
} | ||
|
||
class CustomMutableException extends java.lang.Exception { | ||
int errorCode; | ||
final int errorCount = 6; | ||
} | ||
|
||
private String variable; | ||
} |
20 changes: 20 additions & 0 deletions
20
...rawl/tools/checkstyle/checks/design/throwscount/InputThrowsCountMwthodWithAnnotation.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.design.throwscount; | ||
|
||
import java.awt.AWTException; | ||
import java.io.EOFException; | ||
import java.io.FileNotFoundException; | ||
import java.nio.file.FileAlreadyExistsException; | ||
import java.sql.SQLException; | ||
|
||
public class InputThrowsCountMwthodWithAnnotation extends ParentClass { | ||
@Override | ||
public void method() throws AWTException, SQLException, FileNotFoundException, | ||
EOFException, FileAlreadyExistsException { | ||
super.method(); | ||
} | ||
} | ||
|
||
class ParentClass { | ||
public void method() throws AWTException, SQLException, | ||
FileNotFoundException, EOFException, FileAlreadyExistsException {} | ||
} |
6 changes: 6 additions & 0 deletions
6
...ools/checkstyle/checks/design/visibilitymodifier/InputVisibilityModifierIsStarImport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.design.visibilitymodifier; | ||
|
||
import com.puppycrawl.*; | ||
|
||
public class InputVisibilityModifierIsStarImport { | ||
} |