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

Unit tests for admin cli decode_thrift command #5485

Conversation

taylanisikdemir
Copy link
Member

What changed?

  • Moved thrift decoding command related code to a separate file and made it testable
  • Wrote unit tests for common decoding types
  • Renamed camelCase files with snake_case names

Why?
I was trying cadence admin db decode_thrift -i $input for some of the payloads that I got from DB and got failures. Checked the implementation and noticed it could be improved and tested.

How did you test it?

  • new unit tests
  • go run cmd/tools/cli/main.go admin db decode_thrift -i $input

Copy link
Member

@3vilhamster 3vilhamster left a comment

Choose a reason for hiding this comment

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

LGTM and good to start renaming files to a Go style!

@taylanisikdemir taylanisikdemir merged commit beb3460 into cadence-workflow:master Dec 18, 2023
16 checks passed
@taylanisikdemir taylanisikdemir deleted the taylan/decode_thrift_tests branch December 18, 2023 19:35
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