diff options
author | Josh MacDonald <josh.macdonald@gmail.com> | 2015-10-31 21:26:54 -0700 |
---|---|---|
committer | Josh MacDonald <josh.macdonald@gmail.com> | 2015-10-31 21:26:54 -0700 |
commit | 33bc5056a256f3a49da2062b2e383cbeed2d2b8b (patch) | |
tree | 0f7bcd2368b1054fd9bd088f4268f52bbcf99321 /xdelta3/go/src/regtest.go | |
parent | 15112d6936d27dce00869d931ed0dbddae92ac61 (diff) |
Remove print statements from regtest.go
Diffstat (limited to 'xdelta3/go/src/regtest.go')
-rw-r--r-- | xdelta3/go/src/regtest.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/xdelta3/go/src/regtest.go b/xdelta3/go/src/regtest.go index f8045c0..6497166 100644 --- a/xdelta3/go/src/regtest.go +++ b/xdelta3/go/src/regtest.go | |||
@@ -56,15 +56,12 @@ func smokeTest(r *xdelta.Runner, t *xdelta.TestGroup, p *xdelta.Program) { | |||
56 | } | 56 | } |
57 | 57 | ||
58 | func offsetTest(r *xdelta.Runner, t *xdelta.TestGroup, p *xdelta.Program, offset, bufsize, length int64) { | 58 | func offsetTest(r *xdelta.Runner, t *xdelta.TestGroup, p *xdelta.Program, offset, bufsize, length int64) { |
59 | fmt.Println("Hi") | ||
60 | t.Add(1) | 59 | t.Add(1) |
61 | eargs := []string{"-e", "-1", "-n", fmt.Sprint("-B", bufsize), "-vv", fmt.Sprint("-W", winsize)} | 60 | eargs := []string{"-e", "-1", "-N", fmt.Sprint("-B", bufsize), "-vv", fmt.Sprint("-W", winsize)} |
62 | enc, err := r.Exec(p, true, eargs) | 61 | enc, err := r.Exec(p, true, eargs) |
63 | fmt.Println("Hi2") | ||
64 | if err != nil { | 62 | if err != nil { |
65 | t.Panic(err) | 63 | t.Panic(err) |
66 | } | 64 | } |
67 | fmt.Println("Hi3") | ||
68 | dargs := []string{"-d", fmt.Sprint("-B", bufsize), "-vv", fmt.Sprint("-W", winsize)} | 65 | dargs := []string{"-d", fmt.Sprint("-B", bufsize), "-vv", fmt.Sprint("-W", winsize)} |
69 | dec, err := r.Exec(p, true, dargs) | 66 | dec, err := r.Exec(p, true, dargs) |
70 | if err != nil { | 67 | if err != nil { |
@@ -76,11 +73,8 @@ func offsetTest(r *xdelta.Runner, t *xdelta.TestGroup, p *xdelta.Program, offset | |||
76 | t.Empty(enc.Stderr, "encode") | 73 | t.Empty(enc.Stderr, "encode") |
77 | t.Empty(dec.Stderr, "decode") | 74 | t.Empty(dec.Stderr, "decode") |
78 | 75 | ||
79 | fmt.Println("Hi4") | ||
80 | t.CopyStreams(enc.Stdout, dec.Stdin) | 76 | t.CopyStreams(enc.Stdout, dec.Stdin) |
81 | fmt.Println("Hi5") | ||
82 | t.CompareStreams(dec.Stdout, read, length) | 77 | t.CompareStreams(dec.Stdout, read, length) |
83 | fmt.Println("Hi6") | ||
84 | 78 | ||
85 | // TODO: seems possible to use one WriteRstreams call to generate | 79 | // TODO: seems possible to use one WriteRstreams call to generate |
86 | // the source and target for both encoder and decoder. Why not? | 80 | // the source and target for both encoder and decoder. Why not? |