diff options
author | Moritz Poldrack <git@moritz.sh> | 2022-07-31 22:16:40 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-08-01 10:44:52 +0200 |
commit | aaf0a0c65673db4b94c0dc200d7394a192128da1 (patch) | |
tree | 44940936efff55b49a6d359d053f55c7ab824e4d /lib/structure_helpers_test.go | |
parent | 21dcd440f877192af128c00ca2acbabf68bb3ee3 (diff) | |
download | aerc-aaf0a0c65673db4b94c0dc200d7394a192128da1.tar.gz |
lint: apply new formatting rules
Run `make fmt`.
Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'lib/structure_helpers_test.go')
-rw-r--r-- | lib/structure_helpers_test.go | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/lib/structure_helpers_test.go b/lib/structure_helpers_test.go index f670735c..a63825d9 100644 --- a/lib/structure_helpers_test.go +++ b/lib/structure_helpers_test.go @@ -8,27 +8,26 @@ import ( ) func TestLib_FindAllNonMultipart(t *testing.T) { - testStructure := &models.BodyStructure{ MIMEType: "multipart", Parts: []*models.BodyStructure{ - &models.BodyStructure{}, - &models.BodyStructure{ + {}, + { MIMEType: "multipart", Parts: []*models.BodyStructure{ - &models.BodyStructure{}, - &models.BodyStructure{}, + {}, + {}, }, }, - &models.BodyStructure{}, + {}, }, } expected := [][]int{ - []int{1}, - []int{2, 1}, - []int{2, 2}, - []int{3}, + {1}, + {2, 1}, + {2, 2}, + {3}, } parts := lib.FindAllNonMultipart(testStructure, nil, nil) @@ -42,5 +41,4 @@ func TestLib_FindAllNonMultipart(t *testing.T) { t.Errorf("incorrect values; expected: %v, got: %v", expected[i], parts[i]) } } - } |