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/fsbind_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/fsbind_test.go')
| -rw-r--r-- | hst/fsbind_test.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/hst/fsbind_test.go b/hst/fsbind_test.go index ce904dfa..21d3640d 100644 --- a/hst/fsbind_test.go +++ b/hst/fsbind_test.go @@ -12,8 +12,8 @@ func TestFSBind(t *testing.T) { {"nil", (*hst.FSBind)(nil), false, nil, nil, nil, "<invalid>"}, {"full", &hst.FSBind{ - Dst: m("/dev"), - Src: m("/mnt/dev"), + Target: m("/dev"), + Source: m("/mnt/dev"), Optional: true, Device: true, }, true, container.Ops{&container.BindMountOp{ @@ -24,8 +24,8 @@ func TestFSBind(t *testing.T) { "d+/mnt/dev:/dev"}, {"full write dev", &hst.FSBind{ - Dst: m("/dev"), - Src: m("/mnt/dev"), + Target: m("/dev"), + Source: m("/mnt/dev"), Write: true, Device: true, }, true, container.Ops{&container.BindMountOp{ @@ -36,9 +36,9 @@ func TestFSBind(t *testing.T) { "d*/mnt/dev:/dev"}, {"full write", &hst.FSBind{ - Dst: m("/tmp"), - Src: m("/mnt/tmp"), - Write: true, + Target: m("/tmp"), + Source: m("/mnt/tmp"), + Write: true, }, true, container.Ops{&container.BindMountOp{ Source: m("/mnt/tmp"), Target: m("/tmp"), @@ -47,8 +47,8 @@ func TestFSBind(t *testing.T) { "w*/mnt/tmp:/tmp"}, {"full no flags", &hst.FSBind{ - Dst: m("/etc"), - Src: m("/mnt/etc"), + Target: m("/etc"), + Source: m("/mnt/etc"), }, true, container.Ops{&container.BindMountOp{ Source: m("/mnt/etc"), Target: m("/etc"), @@ -56,7 +56,7 @@ func TestFSBind(t *testing.T) { "*/mnt/etc:/etc"}, {"nil dst", &hst.FSBind{ - Src: m("/"), + Source: m("/"), }, true, container.Ops{&container.BindMountOp{ Source: m("/"), Target: m("/"), |
