mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
- Modified Godeps/Godeps.json by hand - [TEST] Updated welcome docs hash to sharness - [TEST] Updated contact doc - [TEST] disabled breaking test (t0080-repo refs local)
14 lines
372 B
Go
14 lines
372 B
Go
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")
|
|
}
|