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

Add addition unit tests and comment out unused code in workflow parsing utils functions #5870

Merged
merged 11 commits into from
Apr 5, 2024

Conversation

timl3136
Copy link
Contributor

@timl3136 timl3136 commented Apr 4, 2024

What changed?
Add more unit tests, also comment out code that will almost never be run

Why?
Improve test coverage and stability

How did you test it?
Unit tests

Potential risks

Release notes

Documentation Changes

Copy link

codecov bot commented Apr 4, 2024

Codecov Report

Merging #5870 (3eb39b2) into master (9af0e32) will increase coverage by 0.08%.
The diff coverage is 100.00%.

Additional details and impacted files
Files Coverage Δ
...ql/nosqlplugin/cassandra/workflow_parsing_utils.go 91.29% <100.00%> (+19.86%) ⬆️

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9af0e32...3eb39b2. Read the comment docs.

Comment on lines 547 to 555
// in case CrossClusterTaskDefaultTargetRunID is updated and not equal to TransferTaskTransferTargetRunID
// if v, ok := result["target_run_id"]; ok {
// info.TargetRunID = v.(gocql.UUID).String()
// if info.TargetRunID == persistence.CrossClusterTaskDefaultTargetRunID {
// info.TargetRunID = ""
// }
// }
// return info

Copy link
Contributor

Choose a reason for hiding this comment

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

let's just remove this. leaving commented code is confusing

@timl3136 timl3136 merged commit d6b6c47 into cadence-workflow:master Apr 5, 2024
20 checks passed
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