internal/stub: move from container
All checks were successful
Test / Create distribution (push) Successful in 1m2s
Test / Sandbox (push) Successful in 2m40s
Test / Hakurei (push) Successful in 3m39s
Test / ShareFS (push) Successful in 3m39s
Test / Sandbox (race detector) (push) Successful in 5m4s
Test / Hakurei (race detector) (push) Successful in 6m8s
Test / Flake checks (push) Successful in 1m19s

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

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

View File

@@ -9,10 +9,10 @@ import (
"syscall"
"testing"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/dbus"
"hakurei.app/internal/helper"
"hakurei.app/internal/stub"
)
func TestDBusProxyOp(t *testing.T) {

View File

@@ -10,11 +10,11 @@ import (
"unsafe"
"hakurei.app/check"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/acl"
"hakurei.app/internal/dbus"
"hakurei.app/internal/pipewire"
"hakurei.app/internal/stub"
"hakurei.app/internal/xcb"
)

View File

@@ -3,8 +3,8 @@ package system
import (
"testing"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/stub"
)
func TestHardlinkOp(t *testing.T) {

View File

@@ -4,7 +4,7 @@ import (
"os"
"testing"
"hakurei.app/container/stub"
"hakurei.app/internal/stub"
)
func TestMkdirOp(t *testing.T) {

View File

@@ -8,9 +8,9 @@ import (
"testing"
"time"
"hakurei.app/container/stub"
"hakurei.app/internal/acl"
"hakurei.app/internal/pipewire"
"hakurei.app/internal/stub"
)
func TestPipeWireOp(t *testing.T) {

View File

@@ -9,8 +9,8 @@ import (
"testing"
"hakurei.app/check"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/stub"
"hakurei.app/internal/xcb"
"hakurei.app/message"
)

View File

@@ -4,8 +4,8 @@ import (
"os"
"testing"
"hakurei.app/container/stub"
"hakurei.app/internal/acl"
"hakurei.app/internal/stub"
)
func TestWaylandOp(t *testing.T) {

View File

@@ -3,8 +3,8 @@ package system
import (
"testing"
"hakurei.app/container/stub"
"hakurei.app/hst"
"hakurei.app/internal/stub"
"hakurei.app/internal/xcb"
)