Skip to content

fix: correct KeyValuePair equals and add coverage for ServiceLocator#257

Merged
jeromy-cannon merged 29 commits intomainfrom
00232-SL-Add-Coverage
Aug 7, 2023
Merged

fix: correct KeyValuePair equals and add coverage for ServiceLocator#257
jeromy-cannon merged 29 commits intomainfrom
00232-SL-Add-Coverage

Conversation

@jeromy-cannon
Copy link
Copy Markdown
Contributor

@jeromy-cannon jeromy-cannon commented Aug 7, 2023

Description

This pull request changes the following:

Related Issues

nathanklick and others added 14 commits August 3, 2023 10:47
Signed-off-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
@jeromy-cannon jeromy-cannon self-assigned this Aug 7, 2023
jeromy-cannon and others added 12 commits August 7, 2023 11:39
…/test/reflect/ReflectionUtilsTest.java

Co-authored-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
…/test/reflect/ReflectionUtilsTest.java

Co-authored-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
…/test/reflect/ReflectionUtilsTest.java

Co-authored-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
…/test/reflect/ReflectionUtilsTest.java

Co-authored-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
…/test/reflect/ReflectionUtilsTest.java

Co-authored-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
…/test/reflect/ReflectionUtilsTest.java

Co-authored-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
…/test/reflect/ReflectionUtilsTest.java

Co-authored-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
…/test/reflect/ReflectionUtilsTest.java

Co-authored-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
…/test/reflect/ReflectionUtilsTest.java

Co-authored-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
…/test/reflect/ReflectionUtilsTest.java

Co-authored-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 7, 2023

Unit Test Results

16 files  +  3  16 suites  +3   33s ⏱️ +2s
85 tests +28  82 ✔️ +28  3 💤 ±0  0 ±0 
86 runs  +28  83 ✔️ +28  3 💤 ±0  0 ±0 

Results for commit 943607d. ± Comparison against base commit 7f051c0.

This pull request removes 1 and adds 29 tests. Note that renamed tests count towards both.
com.hedera.fullstack.service.locator.test.api.ArtifactLoaderTest ‑ Logback: Artifacts dynamically loaded
com.hedera.fullstack.base.api.test.collections.KeyValuePairTest ‑ Test KeyValuePair
com.hedera.fullstack.base.api.test.reflect.ReflectionUtilsTest ‑ Validate primitive for Boolean.class
com.hedera.fullstack.base.api.test.reflect.ReflectionUtilsTest ‑ Validate primitive for Byte.class
com.hedera.fullstack.base.api.test.reflect.ReflectionUtilsTest ‑ Validate primitive for Character.class
com.hedera.fullstack.base.api.test.reflect.ReflectionUtilsTest ‑ Validate primitive for Double.class
com.hedera.fullstack.base.api.test.reflect.ReflectionUtilsTest ‑ Validate primitive for Float.class
com.hedera.fullstack.base.api.test.reflect.ReflectionUtilsTest ‑ Validate primitive for Integer.class
com.hedera.fullstack.base.api.test.reflect.ReflectionUtilsTest ‑ Validate primitive for Long.class
com.hedera.fullstack.base.api.test.reflect.ReflectionUtilsTest ‑ Validate primitive for Short.class
com.hedera.fullstack.base.api.test.reflect.ReflectionUtilsTest ‑ Validate primitive for String.class
…

♻️ This comment has been updated with latest results.

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 7, 2023

Codecov Report

Merging #257 (943607d) into main (7f051c0) will increase coverage by 7.55%.
The diff coverage is 50.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #257      +/-   ##
============================================
+ Coverage     54.68%   62.23%   +7.55%     
- Complexity      219      254      +35     
============================================
  Files            47       47              
  Lines          1046     1046              
  Branches        129      130       +1     
============================================
+ Hits            572      651      +79     
+ Misses          424      344      -80     
- Partials         50       51       +1     
Files Changed Coverage Δ
...a/fullstack/base/api/collections/KeyValuePair.java 66.66% <0.00%> (+11.11%) ⬆️
.../fullstack/service/locator/api/ArtifactLoader.java 70.83% <100.00%> (+13.54%) ⬆️

... and 2 files with indirect coverage changes

Impacted file tree graph

Copy link
Copy Markdown
Member

@nathanklick nathanklick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ReflectionUtilsTest class looks much cleaner and is now DRY.

Comment thread fullstack-service-locator/build.gradle.kts Outdated
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
Comment thread fullstack-service-locator/build.gradle.kts Outdated
Co-authored-by: Nathan Klick <nathan@swirldslabs.com>
Signed-off-by: Jeromy Cannon <jeromy@swirldslabs.com>
@jeromy-cannon jeromy-cannon marked this pull request as ready for review August 7, 2023 17:54
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Aug 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

66.7% 66.7% Coverage
0.0% 0.0% Duplication

@jeromy-cannon jeromy-cannon merged commit 5b17978 into main Aug 7, 2023
@jeromy-cannon jeromy-cannon deleted the 00232-SL-Add-Coverage branch August 7, 2023 18:08
swirlds-automation added a commit that referenced this pull request Aug 8, 2023
## [0.5.1](v0.5.0...v0.5.1) (2023-08-08)

### Bug Fixes

* correct KeyValuePair equals and add coverage for ServiceLocator ([#257](#257)) ([5b17978](5b17978))
* enable overriding individual properties for sidecars ([#250](#250)) ([7d5a4e1](7d5a4e1))
* only allow jrs profile during node setup ([#249](#249)) ([dd326c1](dd326c1))
* typo in the semantic release config preventing the updates to Chart.yaml from being committed ([#252](#252)) ([02a576b](02a576b))
* update verification script so that CI pipeline fails if node fails to start ([#254](#254)) ([7f051c0](7f051c0))
@swirlds-automation
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.5.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

swirlds-automation added a commit that referenced this pull request Aug 9, 2023
## [0.6.0](v0.5.0...v0.6.0) (2023-08-09)

### Features

* convert chart tests from the custom bash script to be BATS unit tests ([#256](#256)) ([0bcdfcb](0bcdfcb))
* update partial templates to match naming conventions and prefix with fullstack namespace ([#265](#265)) ([fb73b5d](fb73b5d))

### Bug Fixes

* correct KeyValuePair equals and add coverage for ServiceLocator ([#257](#257)) ([5b17978](5b17978))
* default tag is not set properly for proxy containers ([#266](#266)) ([deabd16](deabd16))
* enable overriding individual properties for sidecars ([#250](#250)) ([7d5a4e1](7d5a4e1))
* only allow jrs profile during node setup ([#249](#249)) ([dd326c1](dd326c1))
* typo in the semantic release config preventing the updates to Chart.yaml from being committed ([#252](#252)) ([02a576b](02a576b))
* update verification script so that CI pipeline fails if node fails to start ([#254](#254)) ([7f051c0](7f051c0))
@swirlds-automation
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SL: Add additional unit test coverage

3 participants