hakurei/executable_test.go
Ophestra a1d98823f8
All checks were successful
Test / Create distribution (push) Successful in 31s
Test / Sandbox (push) Successful in 1m55s
Test / Hakurei (push) Successful in 2m47s
Test / Sandbox (race detector) (push) Successful in 3m16s
Test / Planterette (push) Successful in 3m32s
Test / Hakurei (race detector) (push) Successful in 4m25s
Test / Flake checks (push) Successful in 1m9s
hakurei: move container toplevel
Signed-off-by: Ophestra <cat@gensokyo.uk>
2025-07-02 21:23:55 +09:00

18 lines
282 B
Go

package hakurei_test
import (
"os"
"testing"
"git.gensokyo.uk/security/hakurei"
)
func TestExecutable(t *testing.T) {
for i := 0; i < 16; i++ {
if got := hakurei.MustExecutable(); got != os.Args[0] {
t.Errorf("MustExecutable: %q, want %q",
got, os.Args[0])
}
}
}