From 2b88967591dc80694e78e36e5c4f903afddaeae3 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Sat, 25 Mar 2023 21:05:25 -0400 Subject: [PATCH] *.go: `gomft -s -w` Signed-off-by: Vincent Batts --- concept/main.go | 1 + tar/storage/packer_test.go | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/concept/main.go b/concept/main.go index 36bdb40..1a6aeea 100644 --- a/concept/main.go +++ b/concept/main.go @@ -1,3 +1,4 @@ +//go:build ignore // +build ignore package main diff --git a/tar/storage/packer_test.go b/tar/storage/packer_test.go index 2d8f2b6..082c0d8 100644 --- a/tar/storage/packer_test.go +++ b/tar/storage/packer_test.go @@ -11,17 +11,17 @@ import ( func TestDuplicateFail(t *testing.T) { e := []Entry{ - Entry{ + { Type: FileType, Name: "./hurr.txt", Payload: []byte("abcde"), }, - Entry{ + { Type: FileType, Name: "./hurr.txt", Payload: []byte("deadbeef"), }, - Entry{ + { Type: FileType, Name: "hurr.txt", // slightly different path, same file though Payload: []byte("deadbeef"), @@ -44,20 +44,20 @@ func TestDuplicateFail(t *testing.T) { func TestJSONPackerUnpacker(t *testing.T) { e := []Entry{ - Entry{ + { Type: SegmentType, Payload: []byte("how"), }, - Entry{ + { Type: SegmentType, Payload: []byte("y'all"), }, - Entry{ + { Type: FileType, Name: "./hurr.txt", Payload: []byte("deadbeef"), }, - Entry{ + { Type: SegmentType, Payload: []byte("doin"), }, @@ -105,20 +105,20 @@ func TestJSONPackerUnpacker(t *testing.T) { // bytes uncompressed vs 138 bytes compressed. func TestGzip(t *testing.T) { e := []Entry{ - Entry{ + { Type: SegmentType, Payload: []byte("how"), }, - Entry{ + { Type: SegmentType, Payload: []byte("y'all"), }, - Entry{ + { Type: FileType, Name: "./hurr.txt", Payload: []byte("deadbeef"), }, - Entry{ + { Type: SegmentType, Payload: []byte("doin"), }, @@ -165,20 +165,20 @@ func TestGzip(t *testing.T) { func BenchmarkGetPut(b *testing.B) { e := []Entry{ - Entry{ + { Type: SegmentType, Payload: []byte("how"), }, - Entry{ + { Type: SegmentType, Payload: []byte("y'all"), }, - Entry{ + { Type: FileType, Name: "./hurr.txt", Payload: []byte("deadbeef"), }, - Entry{ + { Type: SegmentType, Payload: []byte("doin"), },