]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - remote/ainsl/ainsl_test.go
Update copyright years
[safcm/safcm.git] / remote / ainsl / ainsl_test.go
index ed52bb0f758f4981948e4ff9fbf5b6918f1bee8c..ecb1290d6f5cc0018ad52633931a953e1a4cf093 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2021  Simon Ruderich
+// Copyright (C) 2021-2022  Simon Ruderich
 //
 // This program is free software: you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -33,7 +33,7 @@ func TestHandle(t *testing.T) {
        if err != nil {
                t.Fatal(err)
        }
-       defer os.Chdir(cwd)
+       defer os.Chdir(cwd) //nolint:errcheck
 
        err = os.RemoveAll("testdata")
        if err != nil {
@@ -94,7 +94,7 @@ func TestHandle(t *testing.T) {
                        nil,
                        []ft.File{
                                root,
-                               ft.File{
+                               {
                                        Path: "file",
                                        Mode: 0640,
                                        Data: []byte("line\n"),
@@ -141,7 +141,7 @@ func TestHandle(t *testing.T) {
                        },
                        []ft.File{
                                root,
-                               ft.File{
+                               {
                                        Path: "file",
                                        Mode: 0641,
                                        Data: []byte("line\n"),
@@ -161,7 +161,7 @@ func TestHandle(t *testing.T) {
                        },
                        []ft.File{
                                root,
-                               ft.File{
+                               {
                                        Path: "file",
                                        Mode: 0641,
                                        Data: []byte("existing\nline\n"),
@@ -182,7 +182,7 @@ func TestHandle(t *testing.T) {
                        },
                        []ft.File{
                                root,
-                               ft.File{
+                               {
                                        Path: "file",
                                        Mode: 0641,
                                        Data: []byte("existing\nline\n"),
@@ -204,7 +204,7 @@ func TestHandle(t *testing.T) {
                        },
                        []ft.File{
                                root,
-                               ft.File{
+                               {
                                        Path: "file",
                                        Mode: 0641,
                                        Data: []byte("first\nline\n"),
@@ -225,7 +225,7 @@ func TestHandle(t *testing.T) {
                        },
                        []ft.File{
                                root,
-                               ft.File{
+                               {
                                        Path: "file",
                                        Mode: 0641,
                                        Data: []byte("first\nline\n"),
@@ -246,7 +246,7 @@ func TestHandle(t *testing.T) {
                        },
                        []ft.File{
                                root,
-                               ft.File{
+                               {
                                        Path: "file",
                                        Mode: 0641,
                                        Data: []byte("# line with spaces\nline with spaces\n"),
@@ -268,7 +268,7 @@ func TestHandle(t *testing.T) {
                        },
                        []ft.File{
                                root,
-                               ft.File{
+                               {
                                        Path: "file",
                                        Mode: fs.ModeSymlink | 0777,
                                        Data: []byte("target"),
@@ -287,7 +287,7 @@ func TestHandle(t *testing.T) {
                        },
                        []ft.File{
                                root,
-                               ft.File{
+                               {
                                        Path: "file",
                                        Mode: fs.ModeNamedPipe | 0640,
                                },