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

chore(types): add String unit tests for Digest and fix NewDigest comment #2965

Merged
merged 5 commits into from
Jan 23, 2023

Conversation

qdm12
Copy link
Contributor

@qdm12 qdm12 commented Nov 20, 2022

Changes

Sunday evening fun after getting sick of seeing horrible digest logged as some weird convoluted fields that don't make sense.

  • NewDigest comment fixed
  • Test_BlockAnnounceMessage_String unit test added
  • Test_Digest_String unit test added

Tests

go test -run ^Test_DigestToString$ github.com/ChainSafe/gossamer/dot/types

Issues

One step towards #1945

Primary Reviewer

@EclesioMeloJunior

dot/types/digest.go Outdated Show resolved Hide resolved
dot/types/digest.go Outdated Show resolved Hide resolved
@qdm12 qdm12 changed the base branch from development to qdm12/scale/vdtv-string November 23, 2022 09:37
@qdm12 qdm12 force-pushed the qdm12/types/digesttostring branch 2 times, most recently from 812728d to b179e8e Compare November 23, 2022 10:22
@qdm12 qdm12 marked this pull request as draft November 29, 2022 11:30
@jimjbrettj
Copy link
Contributor

jimjbrettj commented Jan 11, 2023

@qdm12 Can this be closed now due to #2970 ?

Base automatically changed from qdm12/scale/vdtv-string to development January 11, 2023 19:02
@qdm12 qdm12 force-pushed the qdm12/types/digesttostring branch 3 times, most recently from d6c8cc9 to 7e745d1 Compare January 12, 2023 14:04
@qdm12
Copy link
Contributor Author

qdm12 commented Jan 12, 2023

@jimjbrettj it's now minor changes:

  • NewDigest comment fixed
  • Test_BlockAnnounceMessage_String unit test added
  • Test_Digest_String unit test added

But I would still merge it since it hurts the soul to trash two still valid unit tests 😄

@qdm12 qdm12 changed the title feat(dot/types): add DigestToString function chore(types): add String unit tests for Digest and fix NewDigest comment Jan 12, 2023
@qdm12 qdm12 marked this pull request as ready for review January 12, 2023 14:07
@qdm12 qdm12 added the PR Easy label Jan 23, 2023
@qdm12 qdm12 merged commit 650371e into development Jan 23, 2023
@qdm12 qdm12 deleted the qdm12/types/digesttostring branch January 23, 2023 17:02
Copy link

🎉 This PR is included in version 0.8.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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