aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/storage_test.go
blob: 3cb7dd8ae0092c66d9a9d58d2b2aa02c5bb6efd1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package filesystem

import (
	"testing"

	. "gopkg.in/check.v1"
	"gopkg.in/src-d/go-git.v4/storage/filesystem/internal/dotgit"
	"gopkg.in/src-d/go-git.v4/utils/fs"
)

func Test(t *testing.T) { TestingT(t) }

type StorageSuite struct{}

var _ = Suite(&StorageSuite{})

func (s *StorageSuite) TestNewErrorNotFound(c *C) {
	fs := fs.NewOS()
	_, err := NewStorage(fs, "not_found/.git")
	c.Assert(err, Equals, dotgit.ErrNotFound)
}