Skip to content
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

increase code coverage #90

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

increase code coverage #90

wants to merge 7 commits into from

Conversation

gkorland
Copy link
Contributor

@gkorland gkorland commented Nov 2, 2020

No description provided.

@codecov
Copy link

codecov bot commented Nov 2, 2020

Codecov Report

Merging #90 (983b9f3) into master (42a5498) will increase coverage by 4.67%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             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              
Impacted Files Coverage Δ Complexity Δ
...abs/redisgraph/impl/api/RedisGraphTransaction.java 83.33% <100.00%> (+4.16%) 8.00 <1.00> (+1.00)
...labs/redisgraph/impl/resultset/StatisticsImpl.java 77.77% <0.00%> (+11.11%) 18.00% <0.00%> (+1.00%)
.../com/redislabs/redisgraph/graph_entities/Edge.java 84.00% <0.00%> (+12.00%) 11.00% <0.00%> (+3.00%)
.../com/redislabs/redisgraph/graph_entities/Path.java 100.00% <0.00%> (+21.73%) 17.00% <0.00%> (+1.00%)
...edislabs/redisgraph/impl/resultset/RecordImpl.java 72.72% <0.00%> (+22.72%) 10.00% <0.00%> (+2.00%)
...sgraph/exceptions/JRedisGraphRunTimeException.java 100.00% <0.00%> (+66.66%) 3.00% <0.00%> (+2.00%)
...ph/exceptions/JRedisGraphCompileTimeException.java 100.00% <0.00%> (+66.66%) 3.00% <0.00%> (+2.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 42a5498...b33aed1. Read the comment docs.

}

@Test
public void testExceptions() {
Copy link
Contributor

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

Comment on lines +75 to +81
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());
Copy link
Contributor

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

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants