kubo/cmd/ipfswatch/ipfswatch_test.go
Fazlul Shahriar cac753bb18
fix build on Plan 9
Fixes #7575
Fixes #7671
2020-09-23 22:27:01 -04:00

16 lines
390 B
Go

// +build !plan9
package main
import (
"testing"
"github.com/ipfs/go-ipfs/thirdparty/assert"
)
func TestIsHidden(t *testing.T) {
assert.True(IsHidden("bar/.git"), t, "dirs beginning with . should be recognized as hidden")
assert.False(IsHidden("."), t, ". for current dir should not be considered hidden")
assert.False(IsHidden("bar/baz"), t, "normal dirs should not be hidden")
}