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

Add test coverage for cmp_default_heuristics #438

Merged
merged 2 commits into from
Jul 14, 2020
Merged

Add test coverage for cmp_default_heuristics #438

merged 2 commits into from
Jul 14, 2020

Conversation

rfwatson
Copy link
Contributor

Hi there,

This patch adds some basic test coverage for the above function.

It also includes a tiny change adding an #[allow(dead_code)] to kill a compilation warning in the ALSA module.

Copy link
Member

@mitchmindtree mitchmindtree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I left one comment, otherwise happy to merge.

@@ -436,6 +436,7 @@ struct StreamInner {
// Minimum number of samples to put in the buffer.
period_len: usize,

#[allow(dead_code)]
// Whether or not the hardware supports pausing the stream.
can_pause: bool,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you possibly add a // TODO: We need an API to expose this. See #197, #284.

@rfwatson
Copy link
Contributor Author

Done! Thanks.

@mitchmindtree
Copy link
Member

Ahhhh #401 just landed today - it looks like this might need to be updated to account for it?

@rfwatson
Copy link
Contributor Author

Ahhhh #401 just landed today - it looks like this might need to be updated to account for it?

Good shout. I'll take a look later.

@rfwatson
Copy link
Contributor Author

Should be passing again now 🙂

@mitchmindtree mitchmindtree merged commit 997fb9f into RustAudio:master Jul 14, 2020
@rfwatson rfwatson deleted the add-cmp-tests branch July 14, 2020 20:16
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