-
Notifications
You must be signed in to change notification settings - Fork 354
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
Gh-3098: Improve Testing of GafferEntityGenerator #3099
Gh-3098: Improve Testing of GafferEntityGenerator #3099
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3099 +/- ##
=============================================
+ Coverage 65.52% 65.53% +0.01%
- Complexity 2657 2660 +3
=============================================
Files 909 909
Lines 29014 29008 -6
Branches 3238 3234 -4
=============================================
- Hits 19012 19011 -1
+ Misses 8557 8547 -10
- Partials 1445 1450 +5 ☔ View full report in Codecov by Sentry. |
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.
You've added null checks for the vertex properties, but this is showing as untested.
...ry/tinkerpop/src/main/java/uk/gov/gchq/gaffer/tinkerpop/generator/GafferEntityGenerator.java
Outdated
Show resolved
Hide resolved
I haven't added them they were in the existing logic although looking at the code a bit more is impossible to actually make a GafferPop Edge or Vertex with a property that has a null key as it is validated when its added and also the properties are technically stored in a HashMap which also fundamentally does not allow it. Therefore these checks likely can just be removed as they are adding nothing. |
Improves tests for the
GafferEntityGenerator
coverage now > 80%Small tweak to the main class so it checks for null values and to use easier to read lambdas.
Related issue