Files
hakurei/internal/helper/stub_test.go
T
cat 1c3761bb53 container: enter init path early
There is generally no use case where any setup is required before init, and requiring the explicit function call is error-prone and unnecessary. It also causes trouble with packages using a similar trick. This change moves argv0 check early and makes it an import side effect. The stub will be removed in v0.5.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-25 14:53:29 +09:00

11 lines
160 B
Go

package helper_test
import (
"os"
"testing"
"hakurei.app/internal/helper"
)
func TestMain(m *testing.M) { helper.InternalHelperStub(); os.Exit(m.Run()) }