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

Refactor persistence serializer tests and add more cases #5625

Conversation

taylanisikdemir
Copy link
Member

@taylanisikdemir taylanisikdemir commented Jan 24, 2024

What changed?
I was going to add unit tests to cover serialization/deserialization of AsyncWorkflowConfiguration but existing test function was too crowded and error prone. Switching it to table tests and added coverage for other missing cases including nil payloads.

How did you test it?
go test -timeout 60s -run ^TestSerializers$ github.com/uber/cadence/common/persistence -v

@coveralls
Copy link

coveralls commented Jan 24, 2024

Pull Request Test Coverage Report for Build 018d3d2b-f50c-4ff6-b45c-77b525fd1427

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.08%) to 62.726%

Totals Coverage Status
Change from base Build 018d3a16-220b-44f7-bb8b-697ce6dfd5c3: 0.08%
Covered Lines: 92197
Relevant Lines: 146983

💛 - Coveralls

@taylanisikdemir taylanisikdemir merged commit 266f620 into cadence-workflow:master Jan 24, 2024
16 checks passed
@taylanisikdemir taylanisikdemir deleted the taylan/serializer_tests branch January 24, 2024 21:18
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.

4 participants