Skip to content

Commit dfb12d4

Browse files
committed
Added a simple unit test for get_audio_device_ids
1 parent c9bbe6e commit dfb12d4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/audio_unit/macos_helpers.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ pub fn get_audio_device_ids() -> Result<Vec<AudioDeviceID>, Error> {
173173
get_audio_device_ids_for_scope(Scope::Global)
174174
}
175175

176+
#[test]
177+
fn test_get_audio_device_ids() {
178+
let _ = get_audio_device_ids().expect("Failed to get audio device ids");
179+
}
180+
176181
/// does this device support input / ouptut?
177182
pub fn get_audio_device_supports_scope(devid: AudioDeviceID, scope: Scope) -> Result<bool, Error> {
178183
let dev_scope: AudioObjectPropertyScope = match scope {

0 commit comments

Comments
 (0)