diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-11 04:22:04 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-11 04:23:55 +0900 |
| commit | e1e46504a1939aff927ae47508b0523a7305fb18 (patch) | |
| tree | 94f3e9871ac139d701915c2b7517e823701c60ff /container/initoverlay_test.go | |
| parent | ec9343ebd625cc97a0dd8b09f030f84b142b7ca4 (diff) | |
container/check: return error backed by string type
The struct turned out not necessary during initial implementation but was not unwrapped into its single string field. This change replaces it with the underlying string and removes the indirection.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initoverlay_test.go')
| -rw-r--r-- | container/initoverlay_test.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/container/initoverlay_test.go b/container/initoverlay_test.go index 1c0e642a..0ff3cb41 100644 --- a/container/initoverlay_test.go +++ b/container/initoverlay_test.go @@ -312,7 +312,10 @@ func TestMountOverlayOp(t *testing.T) { }, }}, - {"ephemeral", new(Ops).OverlayEphemeral(check.MustAbs("/nix/store"), check.MustAbs("/mnt-root/nix/.ro-store")), Ops{ + {"ephemeral", new(Ops).OverlayEphemeral( + check.MustAbs("/nix/store"), + check.MustAbs("/mnt-root/nix/.ro-store"), + ), Ops{ &MountOverlayOp{ Target: check.MustAbs("/nix/store"), Lower: []*check.Absolute{check.MustAbs("/mnt-root/nix/.ro-store")}, @@ -320,7 +323,10 @@ func TestMountOverlayOp(t *testing.T) { }, }}, - {"readonly", new(Ops).OverlayReadonly(check.MustAbs("/nix/store"), check.MustAbs("/mnt-root/nix/.ro-store")), Ops{ + {"readonly", new(Ops).OverlayReadonly( + check.MustAbs("/nix/store"), + check.MustAbs("/mnt-root/nix/.ro-store"), + ), Ops{ &MountOverlayOp{ Target: check.MustAbs("/nix/store"), Lower: []*check.Absolute{check.MustAbs("/mnt-root/nix/.ro-store")}, |
