aboutsummaryrefslogtreecommitdiffhomepage
path: root/helper/stub_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'helper/stub_test.go')
-rw-r--r--helper/stub_test.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/helper/stub_test.go b/helper/stub_test.go
index e496f143..dc057ac1 100644
--- a/helper/stub_test.go
+++ b/helper/stub_test.go
@@ -1,9 +1,17 @@
package helper_test
import (
+ "os"
"testing"
+ "hakurei.app/container"
"hakurei.app/helper"
+ "hakurei.app/internal"
+ "hakurei.app/internal/hlog"
)
-func TestHelperStub(t *testing.T) { helper.InternalHelperStub() }
+func TestMain(m *testing.M) {
+ container.TryArgv0(hlog.Output{}, hlog.Prepare, internal.InstallOutput)
+ helper.InternalHelperStub()
+ os.Exit(m.Run())
+}