Skip to content

Commit 168ebee

Browse files
committed
Merge branch 'main' into claude/increase-test-coverage-011CV6ApkFZRxiQKNWjPW52w
2 parents a306a1c + 9b14c3f commit 168ebee

File tree

59 files changed

+570
-380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+570
-380
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package testingInProgress.diagnostics.errors;
2+
3+
import liquidjava.specification.StateSet;
4+
5+
@StateSet({"Open", "Closed"})
6+
public class CustomError {
7+
8+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package testingInProgress.diagnostics.errors;
2+
3+
import liquidjava.specification.Ghost;
4+
import liquidjava.specification.StateRefinement;
5+
6+
@Ghost("int size")
7+
public class GhostInvocationError {
8+
9+
@StateRefinement(to="size(this, this) == 0")
10+
public void test() {}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package testingInProgress.diagnostics.errors;
2+
3+
import liquidjava.specification.StateRefinement;
4+
import liquidjava.specification.StateSet;
5+
6+
@StateSet({"open", "closed"})
7+
public class IllegalConstructorTransitionError {
8+
9+
@StateRefinement(from="open(this)", to="closed(this)")
10+
public IllegalConstructorTransitionError() {}
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package testingInProgress.diagnostics.errors;
2+
3+
import liquidjava.specification.Refinement;
4+
5+
public class InvalidRefinementError {
6+
public static void main(String[] args) {
7+
@Refinement("_ + 1")
8+
int x = 5;
9+
}
10+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package testingInProgress.diagnostics.errors;
2+
3+
import liquidjava.specification.Refinement;
4+
5+
public class NotFoundError {
6+
7+
public static void main(String[] args) {
8+
@Refinement("x > 0")
9+
int y = 1;
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package testingInProgress.diagnostics.errors;
2+
3+
import liquidjava.specification.Refinement;
4+
5+
public class RefinementError {
6+
7+
public static void main(String[] args) {
8+
@Refinement("x > 0")
9+
int x = -1;
10+
}
11+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package testingInProgress.diagnostics.errors;
2+
3+
import liquidjava.specification.StateRefinement;
4+
import liquidjava.specification.StateSet;
5+
6+
@StateSet({"open", "closed"})
7+
public class StateConflictError {
8+
9+
@StateRefinement(to="open(this)")
10+
public StateConflictError() {}
11+
12+
@StateRefinement(from="open(this) && closed(this)")
13+
public void close() {}
14+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package testingInProgress.diagnostics.errors;
2+
3+
import liquidjava.specification.StateRefinement;
4+
import liquidjava.specification.StateSet;
5+
6+
@StateSet({"open", "closed"})
7+
public class StateRefinementError {
8+
9+
@StateRefinement(to="open(this)")
10+
public StateRefinementError() {}
11+
12+
@StateRefinement(from="!closed(this)", to="closed(this)")
13+
public void close() {}
14+
15+
public static void main(String[] args) {
16+
StateRefinementError s = new StateRefinementError();
17+
s.close();
18+
s.close();
19+
}
20+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package testingInProgress.diagnostics.errors;
2+
3+
import liquidjava.specification.Refinement;
4+
5+
public class SyntaxError {
6+
7+
public static void main(String[] args) {
8+
@Refinement("x $ 0")
9+
int x = -1;
10+
}
11+
}

0 commit comments

Comments
 (0)