@@ -15,8 +15,8 @@ import (
1515//go:generate esc -o data.go -pkg=fixtures data
1616
1717var (
18- files = make (map [string ]string )
19- fs = osfs .New (os .TempDir ())
18+ files = make (map [string ]string )
19+ Filesystem = osfs .New (os .TempDir ())
2020)
2121
2222var fixtures = Fixtures {{
@@ -207,15 +207,15 @@ func (f *Fixture) Is(tag string) bool {
207207
208208func (f * Fixture ) file (path string ) (billy.File , error ) {
209209 if fpath , ok := files [path ]; ok {
210- return fs .Open (fpath )
210+ return Filesystem .Open (fpath )
211211 }
212212
213213 bytes , err := FSByte (false , "/data/" + path )
214214 if err != nil {
215215 return nil , err
216216 }
217217
218- file , err := fs .TempFile ("" , "go-git-fixtures" )
218+ file , err := Filesystem .TempFile ("" , "go-git-fixtures" )
219219 if err != nil {
220220 return nil , err
221221 }
@@ -229,7 +229,7 @@ func (f *Fixture) file(path string) (billy.File, error) {
229229 }
230230
231231 files [path ] = file .Name ()
232- return fs .Open (file .Name ())
232+ return Filesystem .Open (file .Name ())
233233}
234234
235235func (f * Fixture ) Packfile () billy.File {
@@ -263,7 +263,7 @@ func (f *Fixture) DotGit() billy.Filesystem {
263263 panic (err )
264264 }
265265
266- fs , err := tgz .Extract (fs , file .Name ())
266+ fs , err := tgz .Extract (Filesystem , file .Name ())
267267 if err != nil {
268268 panic (err )
269269 }
@@ -303,7 +303,7 @@ func (f *Fixture) Worktree() billy.Filesystem {
303303 panic (err )
304304 }
305305
306- fs , err := tgz .Extract (fs , file .Name ())
306+ fs , err := tgz .Extract (Filesystem , file .Name ())
307307 if err != nil {
308308 panic (err )
309309 }
@@ -359,7 +359,7 @@ func (g Fixtures) Exclude(tag string) Fixtures {
359359// Clean cleans all the temporal files created
360360func Clean () error {
361361 for fname , f := range files {
362- if err := fs .Remove (f ); err != nil {
362+ if err := Filesystem .Remove (f ); err != nil {
363363 return err
364364 }
365365 delete (files , fname )
0 commit comments