File tree Expand file tree Collapse file tree 4 files changed +11
-12
lines changed
Expand file tree Collapse file tree 4 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1- // Package memory provides a billy filesystem base on meomry .
2- package memory // import "srcd.works/go-billy.v1/memory "
1+ // Package memfs provides a billy filesystem base on memory .
2+ package memfs // import "srcd.works/go-billy.v1/memfs "
33
44import (
55 "errors"
Original file line number Diff line number Diff line change 1- package memory
1+ package memfs
22
33import (
44 "testing"
Original file line number Diff line number Diff line change 11// Package os provides a billy filesystem for the OS.
2- package os // import "srcd.works/go-billy.v1/os "
2+ package osfs // import "srcd.works/go-billy.v1/osfs "
33
44import (
55 "io/ioutil"
Original file line number Diff line number Diff line change 1- package os_test
1+ package osfs
22
33import (
44 "io/ioutil"
5- stdos "os"
5+ "os"
66 "path/filepath"
77 "testing"
88
99 . "gopkg.in/check.v1"
10- "srcd.works/go-billy.v1/os"
1110 "srcd.works/go-billy.v1/test"
1211)
1312
@@ -21,17 +20,17 @@ type OSSuite struct {
2120var _ = Suite (& OSSuite {})
2221
2322func (s * OSSuite ) SetUpTest (c * C ) {
24- s .path , _ = ioutil .TempDir (stdos .TempDir (), "go-git-os-fs-test" )
25- s .FilesystemSuite .Fs = os . New (s .path )
23+ s .path , _ = ioutil .TempDir (os .TempDir (), "go-git-os-fs-test" )
24+ s .FilesystemSuite .Fs = New (s .path )
2625}
2726func (s * OSSuite ) TearDownTest (c * C ) {
28- err := stdos .RemoveAll (s .path )
27+ err := os .RemoveAll (s .path )
2928 c .Assert (err , IsNil )
3029}
3130
3231func (s * OSSuite ) TestOpenDoesNotCreateDir (c * C ) {
3332 _ , err := s .Fs .Open ("dir/non-existent" )
3433 c .Assert (err , NotNil )
35- _ , err = stdos .Stat (filepath .Join (s .path , "dir" ))
36- c .Assert (stdos .IsNotExist (err ), Equals , true )
34+ _ , err = os .Stat (filepath .Join (s .path , "dir" ))
35+ c .Assert (os .IsNotExist (err ), Equals , true )
3736}
You can’t perform that action at this time.
0 commit comments