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

[testing] Mocking rig to fuzz and get generated data based on our struct types #83

Merged
merged 5 commits into from
Jul 20, 2023

Conversation

platinummonkey
Copy link
Contributor

This is the initial commit which should give us a way to obtain generated data based on the structs. The examples/ is good for understanding real samples, but we would need to stub out some values that don't age well.

Will be using this for improved testing on unpoller. The MockUnifi will leverage gofakeit to generate data instead of requiring a live physical device. An httptest mock server implementation exists as well.

@platinummonkey platinummonkey merged commit 881e9f6 into master Jul 20, 2023
2 checks passed
@platinummonkey platinummonkey deleted the mocking-responses branch July 20, 2023 15:10
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.

None yet

1 participant