Add tests for HTTP file abstraction

This commit is contained in:
9seconds
2021-11-29 15:56:53 +03:00
parent c14a2329c5
commit e6fa69d288
4 changed files with 104 additions and 3 deletions
+3
View File
@@ -2,9 +2,12 @@ package files
import (
"context"
"errors"
"io"
)
var ErrBadHTTPClient = errors.New("incorrect http client")
type File interface {
Open(context.Context) (io.ReadCloser, error)
}