mirror of https://github.com/markbates/pkger.git
green eyes
This commit is contained in:
parent
704b38d3ea
commit
ffdb70686a
|
@ -92,7 +92,11 @@ func (s *FileSystem) Test_Create(t *testing.T) {
|
|||
}
|
||||
|
||||
func (s *FileSystem) Test_Current(t *testing.T) {
|
||||
panic("not implemented")
|
||||
r := require.New(t)
|
||||
|
||||
info, err := s.FS.Current()
|
||||
r.NoError(err)
|
||||
r.NotZero(info)
|
||||
}
|
||||
|
||||
func (s *FileSystem) Test_Info(t *testing.T) {
|
||||
|
|
|
@ -15,9 +15,10 @@ var _ fs.FileSystem = &FS{}
|
|||
|
||||
func New(info here.Info) (*FS, error) {
|
||||
f := &FS{
|
||||
infos: &maps.Infos{},
|
||||
paths: &maps.Paths{},
|
||||
files: &maps.Files{},
|
||||
infos: &maps.Infos{},
|
||||
paths: &maps.Paths{},
|
||||
files: &maps.Files{},
|
||||
current: info,
|
||||
}
|
||||
return f, nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue