Increase test coverage, mock libcurl & uniformize error messages
This commit is contained in:
committed by
Brendan Le Glaunec
parent
c1ea6b167c
commit
74672f6625
@@ -0,0 +1,13 @@
|
||||
package cmrdr
|
||||
|
||||
import (
|
||||
curl "github.com/andelf/go-curl"
|
||||
)
|
||||
|
||||
// Curler is an interface that implements the CURL interface of the go-curl library
|
||||
// Used for mocking
|
||||
type Curler interface {
|
||||
Setopt(opt int, param interface{}) error
|
||||
Perform() error
|
||||
Getinfo(info curl.CurlInfo) (interface{}, error)
|
||||
}
|
||||
Reference in New Issue
Block a user