-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1705 from jgwilson42/goto-diff-tests
Goto diff tests and access qualifier comparison
- Loading branch information
Showing
62 changed files
with
630 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
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 foo; | ||
|
||
public class Test { | ||
public int foo(int x) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
int y = x * 10; | ||
return y; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
Binary file not shown.
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 @@ | ||
public class Test { | ||
|
||
public int foo(int x) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
return x * 10; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
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,12 @@ | ||
CORE | ||
new.jar | ||
old.jar --json-ui | ||
// Enable multi-line checking | ||
activate-multi-line-match | ||
EXIT=0 | ||
SIGNAL=0 | ||
"deletedFunctions": \[\n {\n "name": "java::Test\.<init>:\(\)V",\n "sourceLocation": {\n "file": "Test\.java",\n "function": "java::Test\.<init>:\(\)\V",\n "line": "1"\n }\n },\n {\n "name": "java::Test\.foo:\(I\)I",\n "sourceLocation": {\n "file": "Test\.java",\n "function": "java::Test\.foo:\(I\)I",\n "line": "4"\n }\n },\n {\n "name": "java::Test\.bar:\(I\)I",\n "sourceLocation": {\n "file": "Test\.java",\n "function": "java::Test.bar:\(I\)I",\n "line": "12"\n }\n }\n \],\n | ||
"modifiedFunctions": \[ \], | ||
"newFunctions": \[\n {\n "name": "java::foo\.Test\.<init>:\(\)V",\n "sourceLocation": {\n "file": "foo/Test\.java",\n "function": "java::foo\.Test\.<init>:\(\)V",\n "line": "3"\n }\n },\n {\n "name": "java::foo\.Test\.foo:\(I\)I",\n "sourceLocation": {\n "file": "foo/Test\.java",\n "function": "java::foo\.Test\.foo:\(I\)I",\n "line": "5"\n }\n },\n {\n "name": "java::foo\.Test\.bar:\(I\)I",\n "sourceLocation": {\n "file": "foo/Test\.java",\n "function": "java::foo\.Test\.bar:\(I\)I",\n "line": "14"\n }\n }\n \], | ||
-- | ||
^warning: ignoring |
Binary file not shown.
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 @@ | ||
public class Test { | ||
|
||
public int foo(int x) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
return x * 10; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
Binary file not shown.
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 foo; | ||
|
||
public class Test { | ||
public int foo(int x) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
int y = x * 10; | ||
return y; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
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,12 @@ | ||
CORE | ||
new.jar | ||
old.jar --json-ui | ||
// Enable multi-line checking | ||
activate-multi-line-match | ||
EXIT=0 | ||
SIGNAL=0 | ||
"deletedFunctions": \[\n {\n "name": "java::foo\.Test\.<init>:\(\)V",\n "sourceLocation": {\n "file": "foo/Test\.java",\n "function": "java::foo\.Test\.<init>:\(\)V",\n "line": "3"\n }\n },\n {\n "name": "java::foo\.Test\.foo:\(I\)I",\n "sourceLocation": {\n "file": "foo/Test\.java",\n "function": "java::foo\.Test\.foo:\(I\)I",\n "line": "5"\n }\n },\n {\n "name": "java::foo\.Test\.bar:\(I\)I",\n "sourceLocation": {\n "file": "foo/Test\.java",\n "function": "java::foo\.Test\.bar:\(I\)I",\n "line": "14"\n }\n }\n \], | ||
"modifiedFunctions": \[ \], | ||
"newFunctions": \[\n {\n "name": "java::Test\.<init>:\(\)V",\n "sourceLocation": {\n "file": "Test\.java",\n "function": "java::Test\.<init>:\(\)\V",\n "line": "1"\n }\n },\n {\n "name": "java::Test\.foo:\(I\)I",\n "sourceLocation": {\n "file": "Test\.java",\n "function": "java::Test\.foo:\(I\)I",\n "line": "4"\n }\n },\n {\n "name": "java::Test\.bar:\(I\)I",\n "sourceLocation": {\n "file": "Test\.java",\n "function": "java::Test.bar:\(I\)I",\n "line": "12"\n }\n }\n \],\n | ||
-- | ||
^warning: ignoring |
Binary file not shown.
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,10 @@ | ||
public class Test { | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
Binary file not shown.
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 @@ | ||
public class Test { | ||
|
||
public int foo(int x) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
return x * 10; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
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,12 @@ | ||
CORE | ||
new.jar | ||
old.jar --json-ui | ||
// Enable multi-line checking | ||
activate-multi-line-match | ||
EXIT=0 | ||
SIGNAL=0 | ||
"deletedFunctions": \[\n {\n "name": "java::Test\.foo:\(I\)I",\n "sourceLocation": {\n "file": "Test\.java",\n "function": "java::Test\.foo:\(I\)I",\n "line": "4"\n }\n }\n \], | ||
"modifiedFunctions": \[ \], | ||
"newFunctions": \[ \], | ||
-- | ||
^warning: ignoring |
Binary file not shown.
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 @@ | ||
public class Test { | ||
public int foo(int x) { | ||
// This is a new comment | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
return x * 10; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
Binary file not shown.
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 @@ | ||
public class Test { | ||
|
||
public int foo(int x) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
return x * 10; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
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,12 @@ | ||
CORE | ||
new.jar | ||
old.jar --json-ui | ||
// Enable multi-line checking | ||
activate-multi-line-match | ||
EXIT=0 | ||
SIGNAL=0 | ||
"deletedFunctions": \[ \], | ||
"modifiedFunctions": \[ \], | ||
"newFunctions": \[ \], | ||
-- | ||
^warning: ignoring |
Binary file not shown.
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 @@ | ||
public class Test { | ||
public int foo(int y) { | ||
// This is a new comment | ||
if (y > 10) { | ||
return y; | ||
} else { | ||
return y * 10; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
Binary file not shown.
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 @@ | ||
public class Test { | ||
|
||
public int foo(int x) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
return x * 10; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
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,12 @@ | ||
CORE | ||
new.jar | ||
old.jar --json-ui | ||
// Enable multi-line checking | ||
activate-multi-line-match | ||
EXIT=0 | ||
SIGNAL=0 | ||
"deletedFunctions": \[ \], | ||
"modifiedFunctions": \[ \], | ||
"newFunctions": \[ \], | ||
-- | ||
^warning: ignoring |
Binary file not shown.
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 @@ | ||
public class Test { | ||
|
||
public int foo(int x, int y) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
return y * 10; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
Binary file not shown.
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 @@ | ||
public class Test { | ||
|
||
public int foo(int x, int y) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
return x * 10; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
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,12 @@ | ||
CORE | ||
new.jar | ||
old.jar --json-ui | ||
// Enable multi-line checking | ||
activate-multi-line-match | ||
EXIT=0 | ||
SIGNAL=0 | ||
"deletedFunctions": \[ \], | ||
"modifiedFunctions": \[\n {\n "name": "java::Test\.foo:\(II\)I",\n "sourceLocation": {\n "file": "Test\.java",\n "function": "java::Test\.foo:\(II\)I",\n "line": "4"\n }\n }\n \],\n | ||
"newFunctions": \[ \], | ||
-- | ||
^warning: ignoring |
Binary file not shown.
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.diffblue.foo; | ||
|
||
public class Test { | ||
|
||
public int foo(int x) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
return x * 10; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
Binary file not shown.
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 foo; | ||
|
||
public class Test { | ||
public int foo(int x) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
int y = x * 10; | ||
return y; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
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,12 @@ | ||
CORE | ||
new.jar | ||
old.jar --json-ui | ||
// Enable multi-line checking | ||
activate-multi-line-match | ||
EXIT=0 | ||
SIGNAL=0 | ||
"deletedFunctions": \[\n {\n "name": "java::foo\.Test\.<init>:\(\)V",\n "sourceLocation": {\n "file": "foo/Test\.java",\n "function": "java::foo\.Test\.<init>:\(\)V",\n "line": "3"\n }\n },\n {\n "name": "java::foo\.Test\.foo:\(I\)I",\n "sourceLocation": {\n "file": "foo/Test\.java",\n "function": "java::foo\.Test\.foo:\(I\)I",\n "line": "5"\n }\n },\n {\n "name": "java::foo\.Test\.bar:\(I\)I",\n "sourceLocation": {\n "file": "foo/Test\.java",\n "function": "java::foo\.Test\.bar:\(I\)I",\n "line": "14"\n }\n }\n \], | ||
"modifiedFunctions": \[ \], | ||
"newFunctions": \[\n {\n "name": "java::com\.diffblue\.foo\.Test\.<init>:\(\)V",\n "sourceLocation": {\n "file": "com/diffblue/foo/Test\.java",\n "function": "java::com\.diffblue\.foo\.Test\.<init>:\(\)\V",\n "line": "3"\n }\n },\n {\n "name": "java::com\.diffblue\.foo\.Test\.foo:\(I\)I",\n "sourceLocation": {\n "file": "com/diffblue/foo/Test\.java",\n "function": "java::com\.diffblue\.foo\.Test\.foo:\(I\)I",\n "line": "6"\n }\n },\n {\n "name": "java::com\.diffblue\.foo\.Test\.bar:\(I\)I",\n "sourceLocation": {\n "file": "com/diffblue/foo/Test\.java",\n "function": "java::com\.diffblue\.foo\.Test.bar:\(I\)I",\n "line": "14"\n }\n }\n \],\n | ||
-- | ||
^warning: ignoring |
Binary file not shown.
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,26 @@ | ||
public class Test { | ||
|
||
public int foo(int x, int y) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
return x * y; | ||
} | ||
} | ||
|
||
public int foo(int x) { | ||
if (x > 10) { | ||
return x; | ||
} else { | ||
return x * 10; | ||
} | ||
} | ||
|
||
public int bar(int x) { | ||
if (x < 10) { | ||
return x; | ||
} else { | ||
return x / 10; | ||
} | ||
} | ||
} |
Binary file not shown.
Oops, something went wrong.