MCPcopy
hub / github.com/perkeep/perkeep / condSkip

Function condSkip

pkg/fs/fs_test.go:50–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48)
49
50func condSkip(t *testing.T) {
51 if skip, _ := strconv.ParseBool(os.Getenv("SKIP_FUSE_TESTS")); skip {
52 t.Skip("skipping FUSE tests when SKIP_FUSE_TESTS set true")
53 }
54 errmu.Lock()
55 defer errmu.Unlock()
56 if runtime.GOOS != "linux" {
57 t.Skipf("Skipping test on OS %q", runtime.GOOS)
58 }
59}
60
61type mountEnv struct {
62 t *testing.T

Callers 11

TestRootFunction · 0.85
TestReadFileFromRootFunction · 0.85
TestTruncateFileFunction · 0.85
TestMutableFunction · 0.85
TestDifferentWriteTypesFunction · 0.85
TestRenameFunction · 0.85
TestMoveAtFunction · 0.85
TestXattrFunction · 0.85
TestSymlinkFunction · 0.85
TestFinderCopyFunction · 0.85
TestTextEditFunction · 0.85

Calls 2

LockMethod · 0.80
UnlockMethod · 0.80

Tested by

no test coverage detected