github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/cmd/ipfswatch/ipfswatch_test.go (about)

     1  package main
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/ipfs/go-ipfs/thirdparty/assert"
     7  )
     8  
     9  func TestIsHidden(t *testing.T) {
    10  	assert.True(IsHidden("bar/.git"), t, "dirs beginning with . should be recognized as hidden")
    11  	assert.False(IsHidden("."), t, ". for current dir should not be considered hidden")
    12  	assert.False(IsHidden("bar/baz"), t, "normal dirs should not be hidden")
    13  }