Issue #1289: 'OperatorWrapCheck' UT coverage improved

This commit is contained in:
Ruslan Diachenko 2015-07-21 22:21:19 +01:00 committed by Roman Ivanov
parent 5c35deadc6
commit a96429cb97
2 changed files with 16 additions and 1 deletions

View File

@ -1157,7 +1157,6 @@
<regex><pattern>.*.checks.whitespace.AbstractParenPadCheck</pattern><branchRate>88</branchRate><lineRate>100</lineRate></regex>
<regex><pattern>.*.checks.whitespace.NoWhitespaceAfterCheck</pattern><branchRate>94</branchRate><lineRate>98</lineRate></regex>
<regex><pattern>.*.checks.whitespace.NoWhitespaceBeforeCheck</pattern><branchRate>90</branchRate><lineRate>100</lineRate></regex>
<regex><pattern>.*.checks.whitespace.OperatorWrapCheck</pattern><branchRate>68</branchRate><lineRate>81</lineRate></regex>
<regex><pattern>.*.filters.SuppressionCommentFilter</pattern><branchRate>83</branchRate><lineRate>93</lineRate></regex>

View File

@ -59,3 +59,19 @@ class goodCase<T extends Foo & Bar> {
interface Bar {
}
class Switch {
public void test(int i, int j) {
switch(j) {
case 7:
return;
}
switch(i) {
case 1:
break;
default:
;
}
for (int k : new int[]{1,2,3}) {}
}
}