aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/fs_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-25 18:30:40 +0900
committerOphestra <cat@gensokyo.uk>2025-08-25 18:38:19 +0900
commit6d202d73b41d28166f7bea7da36d1ce054711ff9 (patch)
tree8af4f9212fe7c3c49c8035119e8a4405e2c97070 /hst/fs_test.go
parent1438096339f49bdd466f3b057c7e695aa126fc3c (diff)
hst/fsbind: optional autoetc behaviour
This generalises the special field allowing any special behaviour to be matched from target. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fs_test.go')
-rw-r--r--hst/fs_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hst/fs_test.go b/hst/fs_test.go
index 43825c65..af8738f6 100644
--- a/hst/fs_test.go
+++ b/hst/fs_test.go
@@ -209,7 +209,7 @@ type stubFS struct {
func (s stubFS) Valid() bool { return false }
func (s stubFS) Path() *container.Absolute { panic("unreachable") }
func (s stubFS) Host() []*container.Absolute { panic("unreachable") }
-func (s stubFS) Apply(*container.Ops) { panic("unreachable") }
+func (s stubFS) Apply(*hst.ApplyState) { panic("unreachable") }
func (s stubFS) String() string { return "<invalid " + s.typeName + ">" }
type sCheck struct {
@@ -238,7 +238,7 @@ func checkFs(t *testing.T, testCases []fsTestCase) {
t.Run("ops", func(t *testing.T) {
ops := new(container.Ops)
- tc.fs.Apply(ops)
+ tc.fs.Apply(&hst.ApplyState{AutoEtcPrefix: ":3", Ops: ops})
if !reflect.DeepEqual(ops, &tc.ops) {
gotString := new(strings.Builder)
for _, op := range *ops {