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 unit tests for remaining functions in common/types/replicator #6356

Merged
merged 2 commits into from
Oct 11, 2024

Conversation

timl3136
Copy link
Member

What changed?
Add unit tests for remaining functions in common/types/replicator

Why?
Improve test coverage

How did you test it?
Unit tests

Potential risks

Release notes

Documentation Changes

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.09%. Comparing base (f3c2114) to head (40643c8).
Report is 2 commits behind head on master.

Additional details and impacted files

see 7 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 f3c2114...40643c8. Read the comment docs.

@timl3136 timl3136 enabled auto-merge (squash) October 11, 2024 20:53
Comment on lines +814 to +815
res = nilStruct.GetSyncActivityTaskAttributes()
assert.Nil(t, res)
Copy link
Member

Choose a reason for hiding this comment

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

only if you feel like it:

you can probably compact and simplify these with

assert.Zero(t, nilStruct.GetWhatever())

since they're all returning zero values, and that'll be type-agnostic.

Copy link
Member Author

Choose a reason for hiding this comment

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

Got it, thanks

@timl3136 timl3136 merged commit 8c6cf31 into cadence-workflow:master Oct 11, 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