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

test(analyzer): Fix-up a broken assertion #8702

Merged
merged 1 commit into from
May 27, 2024
Merged

test(analyzer): Fix-up a broken assertion #8702

merged 1 commit into from
May 27, 2024

Conversation

fviernau
Copy link
Member

The left hand side and right hand side operator of shouldBe were accidentally made identical by 1.

@fviernau fviernau requested a review from a team as a code owner May 27, 2024 09:11
@fviernau fviernau enabled auto-merge (rebase) May 27, 2024 09:11

serializedResult shouldBe serializedResult
serializedResult shouldBe result
Copy link
Member

Choose a reason for hiding this comment

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

The original test compared YAML to YAML, which results in a textual diff on changes. Maybe this behavior could be maintained by

val serializedResult = result.toYaml()
serializedResult.fromYaml<AnalyzerResult>().toYaml() shouldBe serializedResult

This also avoids one additional fromYaml step.

The left hand side and right hand side operator of `shouldBe` were
accidentally made identical by [1].

[1]: 3de069b

Signed-off-by: Frank Viernau <[email protected]>
Copy link

codecov bot commented May 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.85%. Comparing base (db8c595) to head (76d0a1b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8702   +/-   ##
=========================================
  Coverage     67.85%   67.85%           
  Complexity     1165     1165           
=========================================
  Files           244      244           
  Lines          7736     7736           
  Branches        865      865           
=========================================
  Hits           5249     5249           
  Misses         2128     2128           
  Partials        359      359           
Flag Coverage Δ
funTest-non-docker 34.17% <ø> (ø)
test 38.01% <ø> (ø)

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

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

@fviernau fviernau merged commit 1765a15 into main May 27, 2024
20 checks passed
@fviernau fviernau deleted the arb-test-fixpu branch May 27, 2024 09:40
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