kubo/cmd/ipfswatch/ipfswatch_test.go
Brian Tiger Chow 038ec6a5b3 feat: IPFSWatch
2015-01-23 19:06:30 -08:00

14 lines
374 B
Go

package main
import (
"testing"
"github.com/jbenet/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")
}