Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
interface-go-dms3-core
Commits
3de10ba1
Commit
3de10ba1
authored
Jan 14, 2019
by
Łukasz Magiera
Committed by
Steven Allen
Jan 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unixfs: enforce refs on files when using nocopy
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
e49c3d22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
tests/unixfs.go
tests/unixfs.go
+8
-0
No files found.
tests/unixfs.go
View file @
3de10ba1
...
@@ -16,6 +16,7 @@ import (
...
@@ -16,6 +16,7 @@ import (
"github.com/ipfs/go-ipfs/core/coreapi/interface/options"
"github.com/ipfs/go-ipfs/core/coreapi/interface/options"
"gx/ipfs/QmQXze9tG878pa4Euya4rrDpyTNX3kQe4dhCaBzBozGgpe/go-unixfs"
"gx/ipfs/QmQXze9tG878pa4Euya4rrDpyTNX3kQe4dhCaBzBozGgpe/go-unixfs"
"gx/ipfs/QmQXze9tG878pa4Euya4rrDpyTNX3kQe4dhCaBzBozGgpe/go-unixfs/importer/helpers"
"gx/ipfs/QmR8BauakNcBa3RbE4nbQu76PDiJgoQgz8AJdhJuiU4TAw/go-cid"
"gx/ipfs/QmR8BauakNcBa3RbE4nbQu76PDiJgoQgz8AJdhJuiU4TAw/go-cid"
cbor
"gx/ipfs/QmRoARq3nkUb13HSKZGepCZSWe5GrVPwx7xURJGZ7KWv9V/go-ipld-cbor"
cbor
"gx/ipfs/QmRoARq3nkUb13HSKZGepCZSWe5GrVPwx7xURJGZ7KWv9V/go-ipld-cbor"
mdag
"gx/ipfs/QmTQdH4848iTVCJmKXYyRiK72HufWTLYQQ8iN3JaQ8K1Hq/go-merkledag"
mdag
"gx/ipfs/QmTQdH4848iTVCJmKXYyRiK72HufWTLYQQ8iN3JaQ8K1Hq/go-merkledag"
...
@@ -365,6 +366,13 @@ func (tp *provider) TestAdd(t *testing.T) {
...
@@ -365,6 +366,13 @@ func (tp *provider) TestAdd(t *testing.T) {
opts
:
[]
options
.
UnixfsAddOption
{
options
.
Unixfs
.
Nocopy
(
true
),
options
.
Unixfs
.
RawLeaves
(
false
)},
opts
:
[]
options
.
UnixfsAddOption
{
options
.
Unixfs
.
Nocopy
(
true
),
options
.
Unixfs
.
RawLeaves
(
false
)},
err
:
"nocopy option requires '--raw-leaves' to be enabled as well"
,
err
:
"nocopy option requires '--raw-leaves' to be enabled as well"
,
},
},
{
name
:
"noCopyNoPath"
,
data
:
strFile
(
helloStr
),
path
:
"/ipfs/zb2rhdhmJjJZs9qkhQCpCQ7VREFkqWw3h1r8utjVvQugwHPFd"
,
opts
:
[]
options
.
UnixfsAddOption
{
options
.
Unixfs
.
Nocopy
(
true
)},
err
:
helpers
.
ErrMissingFsRef
.
Error
(),
},
// Events / Progress
// Events / Progress
{
{
name
:
"simpleAddEvent"
,
name
:
"simpleAddEvent"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment