1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-12-18 11:36:30 +00:00

Merge pull request #62 from vbatts/gofmt

*.go: `gomft -s -w`
This commit is contained in:
Vincent Batts 2023-03-25 21:08:59 -04:00 committed by GitHub
commit dea500a137
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 15 deletions

View file

@ -1,3 +1,4 @@
//go:build ignore
// +build ignore
package main

View file

@ -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"),
},