-
Notifications
You must be signed in to change notification settings - Fork 43
Add minimal button tests #306
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
base: main
Are you sure you want to change the base?
Conversation
|
Still need to integrate |
Cargo Vet Audit Passed
|
This commit adds a minimal set of tests for the button logic. Notice that this is, indeed, a breaking a change and coordination with dependent crates is required.
| integrator: u8, | ||
| threshold: u8, | ||
| sample_interval: Duration, | ||
| sample_interval: u32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can yo update the name to sample_interval_ms?
|
|
||
| #[test] | ||
| fn test_last_update_state_change() { | ||
| // Press, active high |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this active low because that's the default for Debouncer?
This commit adds a minimal set of tests for the button logic. Notice that this is, indeed, a breaking a change and coordination with dependent crates is required.