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

Gh-3098: Improve Testing of GafferEntityGenerator #3099

Merged
merged 4 commits into from
Nov 20, 2023

Conversation

tb06904
Copy link
Member

@tb06904 tb06904 commented Nov 16, 2023

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

@tb06904 tb06904 linked an issue Nov 16, 2023 that may be closed by this pull request
Copy link

codecov bot commented Nov 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f8e3a97) 65.52% compared to head (e7bcb57) 65.53%.

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.
📢 Have feedback on the report? Share it here.

Copy link
Member

@GCHQDeveloper314 GCHQDeveloper314 left a 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.

@tb06904
Copy link
Member Author

tb06904 commented Nov 17, 2023

You've added null checks for the vertex properties, but this is showing as untested.

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.

@GCHQDeveloper314 GCHQDeveloper314 changed the title Gh-3098 Improve Testing of GafferEntityGenerator Gh-3098: Improve Testing of GafferEntityGenerator Nov 17, 2023
@t92549 t92549 merged commit b934828 into develop Nov 20, 2023
24 checks passed
@t92549 t92549 deleted the gh-3098-improve-testing-gafferentitygenerator branch November 20, 2023 11:20
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.

Improve the testing of the GafferEntityGenerator class
3 participants