2015-03-02 20:25:03 +00:00
|
|
|
package asm
|
|
|
|
|
2015-03-03 19:23:04 +00:00
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/vbatts/tar-split/tar/storage"
|
|
|
|
)
|
|
|
|
|
|
|
|
var entries = storage.Entries{
|
|
|
|
storage.Entry{
|
|
|
|
Type: storage.SegmentType,
|
|
|
|
Payload: []byte("how"),
|
|
|
|
Position: 0,
|
|
|
|
},
|
|
|
|
storage.Entry{
|
|
|
|
Type: storage.SegmentType,
|
|
|
|
Payload: []byte("y'all"),
|
|
|
|
Position: 1,
|
|
|
|
},
|
|
|
|
storage.Entry{
|
|
|
|
Type: storage.FileType,
|
|
|
|
Name: "./hurr.txt",
|
|
|
|
Payload: []byte("deadbeef"),
|
|
|
|
Size: 8,
|
|
|
|
Position: 2,
|
|
|
|
},
|
|
|
|
storage.Entry{
|
|
|
|
Type: storage.SegmentType,
|
|
|
|
Payload: []byte("doin"),
|
|
|
|
Position: 3,
|
|
|
|
},
|
|
|
|
storage.Entry{
|
|
|
|
Type: storage.FileType,
|
|
|
|
Name: "./ermahgerd.txt",
|
|
|
|
Payload: []byte("cafebabe"),
|
|
|
|
Size: 8,
|
|
|
|
Position: 4,
|
|
|
|
},
|
|
|
|
}
|
2015-03-02 20:25:03 +00:00
|
|
|
|
|
|
|
func TestNewOutputTarStream(t *testing.T) {
|
|
|
|
// TODO disassembly
|
|
|
|
fgp := NewBufferFileGetPutter()
|
|
|
|
_ = NewOutputTarStream(fgp, nil)
|
|
|
|
}
|
2015-03-03 19:23:04 +00:00
|
|
|
|
|
|
|
func TestNewInputTarStream(t *testing.T) {
|
|
|
|
}
|