mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-15 17:40:51 +00:00
32 lines
401 B
Go
32 lines
401 B
Go
package voicemeeter_test
|
|
|
|
import (
|
|
"bytes"
|
|
"testing"
|
|
|
|
log "github.com/sirupsen/logrus"
|
|
|
|
"github.com/onyx-and-iris/voicemeeter/v2"
|
|
)
|
|
|
|
var (
|
|
logstring bytes.Buffer
|
|
vm, err = voicemeeter.NewRemote("potato", 30)
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
err = vm.Login()
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
defer vm.Logout()
|
|
|
|
log.SetOutput(&logstring)
|
|
|
|
m.Run()
|
|
}
|