diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-16 02:06:41 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-16 02:06:41 +0900 |
| commit | 8dd3e1ee5d10c150f58e3b49771d3ca847f6d4cf (patch) | |
| tree | 08c0c6812d34da419cd06323073989fb7b8d0c21 /hst/fsephemeral_test.go | |
| parent | 4ffeec3004607b76f73e504da220a1490c598348 (diff) | |
hst/fs: rename method Target to Path
This allows adapter structs to use the same field names as Op structs.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/fsephemeral_test.go')
| -rw-r--r-- | hst/fsephemeral_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/hst/fsephemeral_test.go b/hst/fsephemeral_test.go index 9286ac44..ed8bbf46 100644 --- a/hst/fsephemeral_test.go +++ b/hst/fsephemeral_test.go @@ -13,10 +13,10 @@ func TestFSEphemeral(t *testing.T) { {"nil", (*hst.FSEphemeral)(nil), false, nil, nil, nil, "<invalid>"}, {"full", &hst.FSEphemeral{ - Dst: m("/run/user/65534"), - Write: true, - Size: 1 << 10, - Perm: 0700, + Target: m("/run/user/65534"), + Write: true, + Size: 1 << 10, + Perm: 0700, }, true, container.Ops{&container.MountTmpfsOp{ FSName: "ephemeral", Path: m("/run/user/65534"), @@ -26,7 +26,7 @@ func TestFSEphemeral(t *testing.T) { }}, m("/run/user/65534"), nil, "w+ephemeral(-rwx------):/run/user/65534"}, - {"cover ro", &hst.FSEphemeral{Dst: m("/run/nscd")}, true, + {"cover ro", &hst.FSEphemeral{Target: m("/run/nscd")}, true, container.Ops{&container.MountTmpfsOp{ FSName: "readonly", Path: m("/run/nscd"), @@ -36,9 +36,9 @@ func TestFSEphemeral(t *testing.T) { "+ephemeral(-rwxr-xr-x):/run/nscd"}, {"negative size", &hst.FSEphemeral{ - Dst: hst.AbsTmp, - Write: true, - Size: -1, + Target: hst.AbsTmp, + Write: true, + Size: -1, }, true, container.Ops{&container.MountTmpfsOp{ FSName: "ephemeral", Path: hst.AbsTmp, |
