Skip to content

Conversation

@felipebalbi
Copy link
Contributor

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.

@felipebalbi felipebalbi requested a review from akshat2112 May 16, 2025 18:01
@felipebalbi felipebalbi self-assigned this May 16, 2025
@felipebalbi felipebalbi added cargo vet PRs pending auditor review BREAKING CHANGE Marks breaking changes labels May 16, 2025
@felipebalbi felipebalbi moved this to In review in Embedded Controller May 16, 2025
@felipebalbi
Copy link
Contributor Author

Still need to integrate cargo test into workflows. It will require coordination with dependents. Don't merge unless you know what you're doing. You've been warned.

@github-actions
Copy link

github-actions bot commented May 16, 2025

Cargo Vet Audit Passed

cargo vet has passed in this PR. No new unvetted dependencies were found.

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.
@felipebalbi felipebalbi marked this pull request as ready for review May 16, 2025 20:08
integrator: u8,
threshold: u8,
sample_interval: Duration,
sample_interval: u32,
Copy link
Contributor

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
Copy link
Contributor

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?

@jeffglaum jeffglaum added this to the 9. Code Quality & Testing milestone Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BREAKING CHANGE Marks breaking changes cargo vet PRs pending auditor review

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

3 participants