diff options
Diffstat (limited to 'container')
| -rw-r--r-- | container/check/absolute_test.go | 4 | ||||
| -rw-r--r-- | container/fhs/abs.go | 4 | ||||
| -rw-r--r-- | container/stub/exit_test.go | 4 |
3 files changed, 9 insertions, 3 deletions
diff --git a/container/check/absolute_test.go b/container/check/absolute_test.go index 466bbacb..91cd3c92 100644 --- a/container/check/absolute_test.go +++ b/container/check/absolute_test.go @@ -14,8 +14,10 @@ import ( . "hakurei.app/container/check" ) +// unsafeAbs returns check.Absolute on any string value. +// //go:linkname unsafeAbs hakurei.app/container/check.unsafeAbs -func unsafeAbs(_ string) *Absolute +func unsafeAbs(pathname string) *Absolute func TestAbsoluteError(t *testing.T) { t.Parallel() diff --git a/container/fhs/abs.go b/container/fhs/abs.go index 6bb72166..9175c1fe 100644 --- a/container/fhs/abs.go +++ b/container/fhs/abs.go @@ -8,8 +8,10 @@ import ( /* constants in this file bypass abs check, be extremely careful when changing them! */ +// unsafeAbs returns check.Absolute on any string value. +// //go:linkname unsafeAbs hakurei.app/container/check.unsafeAbs -func unsafeAbs(_ string) *check.Absolute +func unsafeAbs(pathname string) *check.Absolute var ( // AbsRoot is [Root] as [check.Absolute]. diff --git a/container/stub/exit_test.go b/container/stub/exit_test.go index e4c4f962..3e71c580 100644 --- a/container/stub/exit_test.go +++ b/container/stub/exit_test.go @@ -7,8 +7,10 @@ import ( "hakurei.app/container/stub" ) +// Made available here to check panic recovery behaviour. +// //go:linkname handleExitNew hakurei.app/container/stub.handleExitNew -func handleExitNew(_ testing.TB) +func handleExitNew(t testing.TB) // overrideTFailNow overrides the Fail and FailNow method. type overrideTFailNow struct { |
