Add tests for filesystem driver

This commit is contained in:
ErickSkrauch
2020-04-21 16:17:52 +03:00
parent 6c59ecbe2e
commit 803f3f406b
3 changed files with 57 additions and 4 deletions

View File

@@ -17,10 +17,6 @@ type Filesystem struct {
}
func (f *Filesystem) FindCapeByUsername(username string) (*model.Cape, error) {
if username == "" {
return nil, nil
}
capePath := path.Join(f.path, strings.ToLower(username)+".png")
file, err := os.Open(capePath)
if err != nil {