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

GoMod: Minor follow-up fixes #7722

Merged
merged 7 commits into from
Oct 20, 2023
Merged

GoMod: Minor follow-up fixes #7722

merged 7 commits into from
Oct 20, 2023

Conversation

fviernau
Copy link
Member

See individual commits.

@fviernau fviernau requested a review from a team as a code owner October 20, 2023 06:43
@fviernau fviernau enabled auto-merge (rebase) October 20, 2023 06:53
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (cb6a186) 67.81% compared to head (e491473) 67.74%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7722      +/-   ##
============================================
- Coverage     67.81%   67.74%   -0.08%     
  Complexity     2045     2045              
============================================
  Files           352      352              
  Lines         16829    16842      +13     
  Branches       2380     2385       +5     
============================================
- Hits          11412    11409       -3     
- Misses         4427     4443      +16     
  Partials        990      990              
Flag Coverage Δ
funTest-non-docker 36.44% <ø> (ø)
test 34.32% <0.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
analyzer/src/main/kotlin/managers/GoMod.kt 73.58% <0.00%> (-1.07%) ⬇️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -98,7 +98,7 @@ class GoModFunTest : StringSpec({
"Project dependencies with a (relative) local module dependency are detected correctly" {
val definitionFileApp = testDir.resolve("gomod-submodules/app/go.mod")
val definitionFileUtils = testDir.resolve("gomod-submodules/utils/go.mod")
val expectedResultFile = testDir.resolve("gomod-submodules-embed-expected-output.yml")
val expectedResultFile = testDir.resolve("gomod-submodules-expected-output.yml")
Copy link
Member

Choose a reason for hiding this comment

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

Commit message: Please explain why "embed" is wrong as part of the name.

The name was a copy / paste mistake from another test which tests
handling of dangling references in embed directives. However,
this test is not related to embed directives.

Signed-off-by: Frank Viernau <[email protected]>
The reason why a `Map` is used is for better performance in the caller
logic. So, creating that map better fits into the caller. The function
now also aligns better with its KDoc.

Signed-off-by: Frank Viernau <[email protected]>
This is a fix-up for 1886e39.

Signed-off-by: Frank Viernau <[email protected]>
@fviernau fviernau force-pushed the gomod-minor-clean-ups branch from f6ed7c4 to e491473 Compare October 20, 2023 07:58
@fviernau fviernau requested a review from sschuberth October 20, 2023 08:25
@fviernau fviernau merged commit 21652d2 into main Oct 20, 2023
21 of 22 checks passed
@fviernau fviernau deleted the gomod-minor-clean-ups branch October 20, 2023 08:52
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.

2 participants