1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-05-20 00:18:12 +08:00

files2.0: updates for file type split

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
Łukasz Magiera
2018-11-19 03:24:42 +01:00
parent a43f2f85b8
commit adc7490755
21 changed files with 294 additions and 229 deletions

View File

@ -81,10 +81,10 @@ func TestAddGCLive(t *testing.T) {
datad := ioutil.NopCloser(bytes.NewBufferString("testfileD"))
rfd := files.NewReaderFile(datad, nil)
slf := files.NewSliceFile([]files.FileEntry{
{File: rfa, Name: "a"},
{File: hangfile, Name: "b"},
{File: rfd, Name: "d"},
slf := files.NewSliceFile([]files.DirEntry{
files.FileEntry("a", rfa),
files.FileEntry("b", hangfile),
files.FileEntry("d", rfd),
})
addDone := make(chan struct{})