[audio] Test coverage for execution of audio driver
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
970324cea6
commit
68923c0822
|
@ -18,3 +18,10 @@ func TestAudioDriver(t *testing.T) {
|
|||
|
||||
gobottest.Assert(t, len(d.Halt()), 0)
|
||||
}
|
||||
|
||||
func TestAudioDriverSoundWithNoFilename(t *testing.T) {
|
||||
d := NewAudioDriver(NewAudioAdaptor("conn"), "dev", nil)
|
||||
|
||||
errors := d.Sound("")
|
||||
gobottest.Assert(t, errors[0].Error(), "Requires filename for audio file.")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue