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
6c323ff1
Commit
6c323ff1
authored
Jan 11, 2019
by
Łukasz Magiera
Committed by
Steven Allen
Jan 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ls: skip size for directories
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
d48b9e1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/unixfs.go
tests/unixfs.go
+2
-2
No files found.
tests/unixfs.go
View file @
6c323ff1
...
...
@@ -704,8 +704,8 @@ func (tp *provider) TestLs(t *testing.T) {
if
len
(
links
)
!=
1
{
t
.
Fatalf
(
"expected 1 link, got %d"
,
len
(
links
))
}
if
links
[
0
]
.
Size
!=
15
{
t
.
Fatalf
(
"expected size =
15
, got %d"
,
links
[
0
]
.
Size
)
if
links
[
0
]
.
Size
!=
23
{
t
.
Fatalf
(
"expected size =
23
, got %d"
,
links
[
0
]
.
Size
)
}
if
links
[
0
]
.
Name
!=
"name-of-file"
{
t
.
Fatalf
(
"expected name = name-of-file, got %s"
,
links
[
0
]
.
Name
)
...
...
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