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