aboutsummaryrefslogblamecommitdiffstats
path: root/storage/filesystem/storage_test.go
blob: e398d2280107893dc8a4b0d627566b12aa202954 (plain) (tree)
1
2
3
4
5
6
7
8
9
                  

        

                 
                                           
 
                             
                                     



                                       


                             
 
                              

                                        
                                                       
                            
 
                                                              
 
package filesystem

import (
	"testing"

	"srcd.works/go-git.v4/storage/test"

	. "gopkg.in/check.v1"
	"srcd.works/go-billy.v1/osfs"
)

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

type StorageSuite struct {
	test.BaseStorageSuite
}

var _ = Suite(&StorageSuite{})

func (s *StorageSuite) SetUpTest(c *C) {
	storage, err := NewStorage(osfs.New(c.MkDir()))
	c.Assert(err, IsNil)

	s.BaseStorageSuite = test.NewBaseStorageSuite(storage)
}