aboutsummaryrefslogtreecommitdiffstats
path: root/utils/fs/os_test.go
blob: e70c19ba32a73b0e8b250e00bfe5c7484ff376ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)
}