]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - remote/sync/services_systemd_test.go
Remove superfluous struct names
[safcm/safcm.git] / remote / sync / services_systemd_test.go
index 5aa36cd7bc38019eac8d947d374876cf05bf4f7b..b6b45dd7b64ca2dbb9299ba525f449acb102dd8a 100644 (file)
@@ -61,7 +61,7 @@ LoadError=
                        },
                        [][]byte{nil},
                        []error{nil},
-                       []*exec.Cmd{&exec.Cmd{
+                       []*exec.Cmd{{
                                Path: "/bin/systemctl",
                                Args: []string{
                                        "/bin/systemctl",
@@ -111,7 +111,7 @@ LoadError= ""
                        },
                        [][]byte{nil},
                        []error{nil},
-                       []*exec.Cmd{&exec.Cmd{
+                       []*exec.Cmd{{
                                Path: "/bin/systemctl",
                                Args: []string{
                                        "/bin/systemctl",
@@ -161,7 +161,7 @@ LoadError=
                        },
                        [][]byte{nil},
                        []error{nil},
-                       []*exec.Cmd{&exec.Cmd{
+                       []*exec.Cmd{{
                                Path: "/bin/systemctl",
                                Args: []string{
                                        "/bin/systemctl",
@@ -224,7 +224,7 @@ LoadError=
                                []byte("fake stderr"),
                        },
                        []error{nil, nil, nil, nil},
-                       []*exec.Cmd{&exec.Cmd{
+                       []*exec.Cmd{{
                                Path: "/bin/systemctl",
                                Args: []string{
                                        "/bin/systemctl",
@@ -237,7 +237,7 @@ LoadError=
                                },
                                Stdout: &bytes.Buffer{},
                                Stderr: &bytes.Buffer{},
-                       }, &exec.Cmd{
+                       }, {
                                Path: "/bin/systemctl",
                                Args: []string{
                                        "/bin/systemctl",
@@ -245,7 +245,7 @@ LoadError=
                                },
                                Stdout: &bytes.Buffer{},
                                Stderr: &bytes.Buffer{},
-                       }, &exec.Cmd{
+                       }, {
                                Path: "/bin/systemctl",
                                Args: []string{
                                        "/bin/systemctl",
@@ -256,7 +256,7 @@ LoadError=
                                },
                                Stdout: &bytes.Buffer{},
                                Stderr: &bytes.Buffer{},
-                       }, &exec.Cmd{
+                       }, {
                                Path: "/bin/systemctl",
                                Args: []string{
                                        "/bin/systemctl",
@@ -337,7 +337,7 @@ LoadError=
                        },
                        [][]byte{nil},
                        []error{nil},
-                       []*exec.Cmd{&exec.Cmd{
+                       []*exec.Cmd{{
                                Path: "/bin/systemctl",
                                Args: []string{
                                        "/bin/systemctl",
@@ -423,7 +423,7 @@ LoadError=
                                nil,
                                fmt.Errorf("fake error"),
                        },
-                       []*exec.Cmd{&exec.Cmd{
+                       []*exec.Cmd{{
                                Path: "/bin/systemctl",
                                Args: []string{
                                        "/bin/systemctl",
@@ -436,7 +436,7 @@ LoadError=
                                },
                                Stdout: &bytes.Buffer{},
                                Stderr: &bytes.Buffer{},
-                       }, &exec.Cmd{
+                       }, {
                                Path: "/bin/systemctl",
                                Args: []string{
                                        "/bin/systemctl",
@@ -444,7 +444,7 @@ LoadError=
                                },
                                Stdout: &bytes.Buffer{},
                                Stderr: &bytes.Buffer{},
-                       }, &exec.Cmd{
+                       }, {
                                Path: "/bin/systemctl",
                                Args: []string{
                                        "/bin/systemctl",