Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-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
go-fuse
Commits
02b38384
Commit
02b38384
authored
May 08, 2018
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fuse/nodefs: use testutil.VerboseTest
parent
9733055c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
17 deletions
+6
-17
fuse/nodefs/fileless_test.go
fuse/nodefs/fileless_test.go
+3
-2
fuse/nodefs/memnode_test.go
fuse/nodefs/memnode_test.go
+3
-2
fuse/nodefs/verbose_test.go
fuse/nodefs/verbose_test.go
+0
-13
No files found.
fuse/nodefs/fileless_test.go
View file @
02b38384
...
...
@@ -9,6 +9,7 @@ import (
"testing"
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/internal/testutil"
)
type
nodeReadNode
struct
{
...
...
@@ -66,7 +67,7 @@ func TestNoOpen(t *testing.T) {
root
:=
newNodeReadNode
(
true
,
true
,
nil
)
root
.
noOpen
=
true
s
,
_
,
err
:=
MountRoot
(
dir
,
root
,
&
Options
{
Debug
:
VerboseTest
()})
s
,
_
,
err
:=
MountRoot
(
dir
,
root
,
&
Options
{
Debug
:
testutil
.
VerboseTest
()})
if
err
!=
nil
{
t
.
Fatalf
(
"MountRoot: %v"
,
err
)
}
...
...
@@ -108,7 +109,7 @@ func TestNodeRead(t *testing.T) {
root
:=
newNodeReadNode
(
false
,
true
,
nil
)
opts
:=
NewOptions
()
opts
.
Debug
=
VerboseTest
()
opts
.
Debug
=
testutil
.
VerboseTest
()
s
,
_
,
err
:=
MountRoot
(
dir
,
root
,
opts
)
if
err
!=
nil
{
t
.
Fatalf
(
"MountRoot: %v"
,
err
)
...
...
fuse/nodefs/memnode_test.go
View file @
02b38384
...
...
@@ -11,6 +11,7 @@ import (
"time"
"github.com/hanwen/go-fuse/fuse"
"github.com/hanwen/go-fuse/internal/testutil"
)
const
testTtl
=
100
*
time
.
Millisecond
...
...
@@ -31,9 +32,9 @@ func setupMemNodeTest(t *testing.T) (wd string, root Node, clean func()) {
EntryTimeout
:
testTtl
,
AttrTimeout
:
testTtl
,
NegativeTimeout
:
0.0
,
Debug
:
VerboseTest
(),
Debug
:
testutil
.
VerboseTest
(),
})
state
,
err
:=
fuse
.
NewServer
(
connector
.
RawFS
(),
mnt
,
&
fuse
.
MountOptions
{
Debug
:
VerboseTest
()})
state
,
err
:=
fuse
.
NewServer
(
connector
.
RawFS
(),
mnt
,
&
fuse
.
MountOptions
{
Debug
:
testutil
.
VerboseTest
()})
if
err
!=
nil
{
t
.
Fatal
(
"NewServer"
,
err
)
}
...
...
fuse/nodefs/verbose_test.go
deleted
100644 → 0
View file @
9733055c
// Copyright 2016 the Go-FUSE Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
nodefs
import
"flag"
// VerboseTest returns true if the testing framework is run with -v.
func
VerboseTest
()
bool
{
flag
:=
flag
.
Lookup
(
"test.v"
)
return
flag
!=
nil
&&
flag
.
Value
.
String
()
==
"true"
}
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