aboutsummaryrefslogblamecommitdiffstats
path: root/utils/fs/os_test.go
blob: e70c19ba32a73b0e8b250e00bfe5c7484ff376ac (plain) (tree)
1
2
3
4
5
6
7
8
9




                   
 


                             


                       

 
                         
 


                                                                     
 

                                      
                            
 
package fs

import (
	"io/ioutil"
	"os"

	. "gopkg.in/check.v1"
)

type OSSuite struct {
	FilesystemSuite
	path string
}

var _ = Suite(&OSSuite{})

func (s *OSSuite) SetUpTest(c *C) {
	s.path, _ = ioutil.TempDir(os.TempDir(), "go-git-os-fs-test")
	s.FilesystemSuite.fs = NewOS(s.path)
}
func (s *OSSuite) TearDownTest(c *C) {
	err := os.RemoveAll(s.path)
	c.Assert(err, IsNil)
}