1
0
forked from rosa/hakurei

internal/stub: move from container

This package solves a very specific stubbing use case, in a less than elegant manner.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-03-17 16:09:14 +09:00
parent 722989c682
commit bac583f89e
57 changed files with 60 additions and 57 deletions

View File

@@ -22,8 +22,8 @@ import (
"hakurei.app/container"
"hakurei.app/container/seccomp"
"hakurei.app/container/std"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/stub"
"hakurei.app/internal/system"
"hakurei.app/message"
)

View File

@@ -9,8 +9,8 @@ import (
"testing"
"unsafe"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/stub"
)
func TestHsu(t *testing.T) {

View File

@@ -12,11 +12,11 @@ import (
"hakurei.app/container"
"hakurei.app/container/seccomp"
"hakurei.app/container/std"
"hakurei.app/container/stub"
"hakurei.app/ext"
"hakurei.app/fhs"
"hakurei.app/hst"
"hakurei.app/internal/env"
"hakurei.app/internal/stub"
)
func TestShimEntrypoint(t *testing.T) {

View File

@@ -6,8 +6,8 @@ import (
"testing"
"hakurei.app/container"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/stub"
)
func TestSpAccountOp(t *testing.T) {

View File

@@ -11,11 +11,11 @@ import (
"hakurei.app/container"
"hakurei.app/container/seccomp"
"hakurei.app/container/std"
"hakurei.app/container/stub"
"hakurei.app/fhs"
"hakurei.app/hst"
"hakurei.app/internal/acl"
"hakurei.app/internal/dbus"
"hakurei.app/internal/stub"
"hakurei.app/internal/system"
)

View File

@@ -5,11 +5,11 @@ import (
"testing"
"hakurei.app/container"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/acl"
"hakurei.app/internal/dbus"
"hakurei.app/internal/helper"
"hakurei.app/internal/stub"
"hakurei.app/internal/system"
"hakurei.app/message"
)

View File

@@ -4,9 +4,9 @@ import (
"testing"
"hakurei.app/container"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/pipewire"
"hakurei.app/internal/stub"
"hakurei.app/internal/system"
)

View File

@@ -9,9 +9,9 @@ import (
"hakurei.app/check"
"hakurei.app/container"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/acl"
"hakurei.app/internal/stub"
"hakurei.app/internal/system"
)

View File

@@ -5,10 +5,10 @@ import (
"hakurei.app/container"
"hakurei.app/container/std"
"hakurei.app/container/stub"
"hakurei.app/fhs"
"hakurei.app/hst"
"hakurei.app/internal/acl"
"hakurei.app/internal/stub"
"hakurei.app/internal/system"
)

View File

@@ -5,10 +5,10 @@ import (
"hakurei.app/container"
"hakurei.app/container/std"
"hakurei.app/container/stub"
"hakurei.app/fhs"
"hakurei.app/hst"
"hakurei.app/internal/acl"
"hakurei.app/internal/stub"
"hakurei.app/internal/system"
)

View File

@@ -4,9 +4,9 @@ import (
"testing"
"hakurei.app/container"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/acl"
"hakurei.app/internal/stub"
"hakurei.app/internal/system"
"hakurei.app/internal/wayland"
)

View File

@@ -5,9 +5,9 @@ import (
"testing"
"hakurei.app/container"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/acl"
"hakurei.app/internal/stub"
)
func TestSpX11Op(t *testing.T) {