Skip to content

Commit

Permalink
test: remove alsa enumeration test
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarLiner committed Jul 26, 2024
1 parent 4478c81 commit b27745f
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/backends/alsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,31 +130,3 @@ impl AlsaDevice {
Ok(io)
}
}

#[cfg(test)]
mod tests {
use crate::{AudioDevice, AudioDriver, DeviceType};

use super::AlsaDriver;

#[test]
fn test_enumeration() {
let driver = AlsaDriver::default();
eprintln!("Driver name : {}", AlsaDriver::DISPLAY_NAME);
eprintln!("Driver version: {}", driver.version().unwrap());
eprintln!("Default device:");
for device_type in [DeviceType::Input, DeviceType::Output, DeviceType::Duplex] {
eprint!("\t{device_type:?}:\t");
if let Some(device) = driver.default_device(device_type).unwrap() {
eprintln!("{}", device.name());
} else {
eprintln!("None");
}
}

eprintln!("All devices :");
for device in driver.list_devices().unwrap() {
eprintln!("\t{} ({:?})", device.name(), device.device_type());
}
}
}

0 comments on commit b27745f

Please sign in to comment.