green eyes

This commit is contained in:
Mark Bates 2019-08-31 22:47:23 -04:00
parent 704b38d3ea
commit ffdb70686a
2 changed files with 9 additions and 4 deletions

View File

@ -92,7 +92,11 @@ func (s *FileSystem) Test_Create(t *testing.T) {
} }
func (s *FileSystem) Test_Current(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) { func (s *FileSystem) Test_Info(t *testing.T) {

View File

@ -15,9 +15,10 @@ var _ fs.FileSystem = &FS{}
func New(info here.Info) (*FS, error) { func New(info here.Info) (*FS, error) {
f := &FS{ f := &FS{
infos: &maps.Infos{}, infos: &maps.Infos{},
paths: &maps.Paths{}, paths: &maps.Paths{},
files: &maps.Files{}, files: &maps.Files{},
current: info,
} }
return f, nil return f, nil
} }