diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-25 00:43:22 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-25 00:45:10 +0900 |
| commit | e71ae3b8c5b4a8f103a078783fef2f56ee5450a2 (patch) | |
| tree | e6b7a87006563da8c360ca248e261a7fe7e2820f /helper/stub_test.go | |
| parent | 9d7a19d162e7003ce89804f00c526b77b2328baa (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'helper/stub_test.go')
| -rw-r--r-- | helper/stub_test.go | 10 |
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()) +} |
