From e71ae3b8c5b4a8f103a078783fef2f56ee5450a2 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 25 Jul 2025 00:43:22 +0900 Subject: container: remove custom cmd initialisation This part of the interface is very unintuitive and only used for testing, even in testing it is inelegant and can be done better. Signed-off-by: Ophestra --- helper/stub_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'helper/stub_test.go') 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()) +} -- cgit v1.3.1