mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2026-04-18 13:33:30 +00:00
package module moved into root of repository.
example in readme updated. level pooler implemented, runs in its own goroutine. Remote type now exported observers example updated.
This commit is contained in:
29
bus_test.go
Normal file
29
bus_test.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package voicemeeter
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestGetPhysBus(t *testing.T) {
|
||||
//t.Skip("skipping test")
|
||||
__bus := newPhysicalBus(0, newPotatoKind())
|
||||
t.Run("Should return a physical bus type", func(t *testing.T) {
|
||||
assert.NotNil(t, __bus)
|
||||
})
|
||||
t.Run("Should return 'PhysicalBus0'", func(t *testing.T) {
|
||||
assert.Equal(t, "PhysicalBus0", __bus.String())
|
||||
})
|
||||
}
|
||||
|
||||
func TestGetVirtBus(t *testing.T) {
|
||||
//t.Skip("skipping test")
|
||||
__bus := newVirtualBus(4, newPotatoKind())
|
||||
t.Run("Should return a basic kind", func(t *testing.T) {
|
||||
assert.NotNil(t, __bus)
|
||||
})
|
||||
t.Run("Should return 'VirtualBus4'", func(t *testing.T) {
|
||||
assert.Equal(t, "VirtualBus4", __bus.String())
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user