1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-12-18 03:26:31 +00:00

*.go: gomft -s -w

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2023-03-25 21:05:25 -04:00
parent da105eb683
commit 2b88967591
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED
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"),
},