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:
onyx-and-iris
2022-07-09 19:01:58 +01:00
parent f16bed893f
commit 70d69f5599
32 changed files with 179 additions and 75 deletions

40
kinds_test.go Normal file
View File

@@ -0,0 +1,40 @@
package voicemeeter
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetKindBasic(t *testing.T) {
//t.Skip("skipping test")
__kind := newBasicKind()
t.Run("Should return a basic kind", func(t *testing.T) {
assert.NotNil(t, __kind)
})
t.Run("Should equal 'Basic'", func(t *testing.T) {
assert.Equal(t, "Basic", __kind.String())
})
}
func TestGetKindBanana(t *testing.T) {
//t.Skip("skipping test")
__kind := newBananaKind()
t.Run("Should return a banana kind", func(t *testing.T) {
assert.NotNil(t, __kind)
})
t.Run("Should return 'Banana'", func(t *testing.T) {
assert.Equal(t, "Banana", __kind.String())
})
}
func TestGetKindPotato(t *testing.T) {
//t.Skip("skipping test")
__kind := newPotatoKind()
t.Run("Should return a potato kind", func(t *testing.T) {
assert.NotNil(t, __kind)
})
t.Run("Should return 'Potato'", func(t *testing.T) {
assert.Equal(t, "Potato", __kind.String())
})
}