-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert e2e_exception_test to end to end test #1584
* Adds support for -BEGIN_WRITE_TRANSACTION within the test file * Splits exception.test into multiple files * Raises an exception if the test file is invalid * Deletes e2e_exception_test.cpp file * Add TestException and improve error messages
- Loading branch information
Showing
16 changed files
with
285 additions
and
270 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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
-GROUP TinySnbExceptionTest | ||
-DATASET tinysnb | ||
|
||
-- | ||
|
||
-CASE DivideBy0Error | ||
-QUERY RETURN 1 / 0 | ||
---- error | ||
Runtime exception: Divide by zero. | ||
|
||
-CASE ModuloBy0Error | ||
-QUERY RETURN 1 % 0 | ||
---- error | ||
Runtime exception: Modulo by zero. | ||
|
||
-CASE EmptyQuery | ||
-QUERY | ||
---- error | ||
Connection Exception: Query is empty. | ||
|
||
-CASE ReadAfterUpdate2 | ||
-QUERY MATCH (a:person) WHERE a.age = 35 DELETE a WITH a MATCH (a)-[:knows]->(b:person) RETURN a.age | ||
---- error | ||
Binder exception: Read after update is not supported. | ||
|
||
-CASE Overflow | ||
-QUERY RETURN to_int16(10000000000) | ||
---- error | ||
Runtime exception: Cast failed. 10000000000 is not in INT16 range. | ||
|
||
-CASE Int32PrimaryKey | ||
-STATEMENT CREATE NODE TABLE play(a INT32, PRIMARY KEY (a)) | ||
---- error | ||
Binder exception: Invalid primary key type: INT32. Expected STRING or INT64. |
Oops, something went wrong.