diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-08 14:19:11 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-08 14:58:24 +0900 |
| commit | f869ff95a12756de97827b4afd93763f9661f144 (patch) | |
| tree | 6f5445ae623f44ceb99c8f7ddb5bb4cd1fb04aa0 /container/init_test.go | |
| parent | 725f2e0ef3eaba1ad46b597604a684125ab93911 (diff) | |
all: apply modernisers
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/init_test.go')
| -rw-r--r-- | container/init_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/container/init_test.go b/container/init_test.go index 23d0a7b3..fe0e627a 100644 --- a/container/init_test.go +++ b/container/init_test.go @@ -95,7 +95,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -123,7 +123,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -152,7 +152,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -182,7 +182,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -213,7 +213,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -245,7 +245,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -279,7 +279,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, @@ -315,7 +315,7 @@ func TestInitEntrypoint(t *testing.T) { Uid: 1 << 16, Gid: 1 << 15, Hostname: "hakurei-check", - Ops: (*Ops)(sliceAddr(make(Ops, 1))), + Ops: new(make(Ops, 1)), SeccompRules: make([]std.NativeRule, 0), SeccompPresets: std.PresetStrict, RetainSession: true, |
