aboutsummaryrefslogtreecommitdiff
path: root/librsync/librsync_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'librsync/librsync_test.go')
-rw-r--r--librsync/librsync_test.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/librsync/librsync_test.go b/librsync/librsync_test.go
index e0fd50f..256e344 100644
--- a/librsync/librsync_test.go
+++ b/librsync/librsync_test.go
@@ -2,28 +2,11 @@ package librsync
import (
"bytes"
- "fmt"
"github.com/kch42/golibrsync/librsync/testdata"
"io"
- "os"
"testing"
)
-func dump(r io.Reader) (string, error) {
- path := fmt.Sprintf("%s%cgolibrsync_test", os.TempDir(), os.PathSeparator)
- file, err := os.Create(path)
- if err != nil {
- return "", err
- }
- defer file.Close()
-
- if _, err = io.Copy(file, r); err != nil {
- return "", err
- }
-
- return path, nil
-}
-
func TestSignatureDeltaPatch(t *testing.T) {
// Generate signature
orig := bytes.NewReader(testdata.RandomData())