-
Notifications
You must be signed in to change notification settings - Fork 20
increase code coverage #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #90 +/- ##
============================================
+ Coverage 79.49% 84.17% +4.67%
- Complexity 188 200 +12
============================================
Files 23 23
Lines 556 556
Branches 60 60
============================================
+ Hits 442 468 +26
+ Misses 91 65 -26
Partials 23 23
Continue to review full report at Codecov.
|
} | ||
|
||
@Test | ||
public void testExceptions() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this to a different unit test file. break every functionality to test case
public void testSyntaxErrorReporting() { | ||
try { | ||
// Issue a query that causes a compile-time error | ||
api.query("social", "RETURN toUpper(5)"); | ||
} catch (Exception e) { | ||
Assert.assertEquals(JRedisGraphCompileTimeException.class, e.getClass()); | ||
Assert.assertEquals( "redis.clients.jedis.exceptions.JedisDataException: Type mismatch: expected String but was Integer", e.getMessage()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use juint 5 for assertThrows
?
https://www.baeldung.com/junit-assert-exception
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we are not using Junit 5
No description provided.