Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
package tzdata |
| 2 |
|
| 3 |
import ( |
| 4 |
"bufio" |
| 5 |
"bytes" |
| 6 |
"os" |
| 7 |
"testing" |
| 8 |
) |
| 9 |
|
| 10 |
func TestExtractTarGz(t *testing.T) { |
| 11 |
|
| 12 |
file, err := os.Open(`output.tar.gz`) |
| 13 |
if err != nil { |
| 14 |
t.Errorf("%v", err) |
| 15 |
} |
| 16 |
defer file.Close() |
| 17 |
|
| 18 |
var b bytes.Buffer |
| 19 |
w := bufio.NewWriter(&b) |
| 20 |
|
| 21 |
err = ExtractTarGz(file, w, "backward") |
| 22 |
if err != nil { |
| 23 |
t.Errorf("%v", err) |
| 24 |
} |
| 25 |
|
| 26 |
// fmt.Printf("Data: %v", b.String()) |
| 27 |
} |