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

Allow to pass a custom fuzzing function to FuzzConsistency #53

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Mar 27, 2023

Without this we cannot run testing.FuzzConsistency on types that have embedded interfaces (see common/types/malfeasance_test.go in this PR: spacemeshos/go-spacemesh#4209)

@fasmat fasmat merged commit 1dc7783 into master Mar 27, 2023
@fasmat fasmat deleted the add-custom-fuzzing-functions-in-tests branch March 27, 2023 20:11
bors bot pushed a commit to spacemeshos/go-spacemesh that referenced this pull request Mar 27, 2023
…ethods (#4209)

## Motivation
We should have fuzzing tests for all types with handwritten `EncodeScale` and `DecodeScale` methods. This will protect us from changes to any type that doesn't have generated methods and might lead to bugs that wouldn't otherwise be detected.

Do not merge before: spacemeshos/go-scale#53

## Changes
Add fuzzing tests for all types with handwritten `EncodeScale` and `DecodeScale` methods.

## Test Plan
<!-- Please specify how these changes were tested 
(e.g. unit tests, manual testing, etc.) -->

## TODO
<!-- This section should be removed when all items are complete -->
- [x] Explain motivation or link existing issue(s)
- [x] Test changes and document test plan
- [x] Update documentation as needed

## DevOps Notes
<!-- Please uncheck these items as applicable to make DevOps aware of changes that may affect releases -->
- [x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
- [x] This PR does not affect public APIs
- [x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
- [x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)
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