Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jacobsa-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
jacobsa-fuse
Commits
90d93355
Commit
90d93355
authored
Sep 16, 2019
by
Michael Stapelberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix formatting directives (to pass go test)
parent
bf89eeaf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
internal/buffer/out_message_test.go
internal/buffer/out_message_test.go
+2
-2
mount_test.go
mount_test.go
+3
-3
samples/mount_sample/mount.go
samples/mount_sample/mount.go
+1
-1
No files found.
internal/buffer/out_message_test.go
View file @
90d93355
...
...
@@ -280,12 +280,12 @@ func TestOutMessageGrow(t *testing.T) {
// Check the resulting length in two ways.
const
wantLen
=
payloadSize
+
OutMessageHeaderSize
if
got
,
want
:=
om
.
Len
(),
wantLen
;
got
!=
want
{
t
.
Errorf
(
"om.Len() = %d, want %d"
,
got
)
t
.
Errorf
(
"om.Len() = %d, want %d"
,
got
,
want
)
}
b
:=
om
.
Bytes
()
if
got
,
want
:=
len
(
b
),
wantLen
;
got
!=
want
{
t
.
Fatalf
(
"len(om.Len()) = %d, want %d"
,
got
)
t
.
Fatalf
(
"len(om.Len()) = %d, want %d"
,
got
,
want
)
}
// Check that the payload was zeroed.
...
...
mount_test.go
View file @
90d93355
...
...
@@ -40,7 +40,7 @@ func TestSuccessfulMount(t *testing.T) {
// Set up a temporary directory.
dir
,
err
:=
ioutil
.
TempDir
(
""
,
"mount_test"
)
if
err
!=
nil
{
t
.
Fatal
(
"ioutil.TempDir: %v"
,
err
)
t
.
Fatal
f
(
"ioutil.TempDir: %v"
,
err
)
}
defer
os
.
RemoveAll
(
dir
)
...
...
@@ -80,7 +80,7 @@ func TestNonEmptyMountPoint(t *testing.T) {
// Set up a temporary directory.
dir
,
err
:=
ioutil
.
TempDir
(
""
,
"mount_test"
)
if
err
!=
nil
{
t
.
Fatal
(
"ioutil.TempDir: %v"
,
err
)
t
.
Fatal
f
(
"ioutil.TempDir: %v"
,
err
)
}
defer
os
.
RemoveAll
(
dir
)
...
...
@@ -116,7 +116,7 @@ func TestNonexistentMountPoint(t *testing.T) {
// Set up a temporary directory.
dir
,
err
:=
ioutil
.
TempDir
(
""
,
"mount_test"
)
if
err
!=
nil
{
t
.
Fatal
(
"ioutil.TempDir: %v"
,
err
)
t
.
Fatal
f
(
"ioutil.TempDir: %v"
,
err
)
}
defer
os
.
RemoveAll
(
dir
)
...
...
samples/mount_sample/mount.go
View file @
90d93355
...
...
@@ -123,7 +123,7 @@ func main() {
// Grab the file to signal when ready.
readyFile
,
err
:=
getReadyFile
()
if
err
!=
nil
{
log
.
Fatalf
(
"getReadyFile:"
,
err
)
log
.
Fatalf
(
"getReadyFile:
%v
"
,
err
)
}
// Create an appropriate file system.
...
...
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