Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeFaceDetect ¶
type FakeFaceDetect struct {
// contains filtered or unexported fields
}
FakeFaceDetect is a mock FaceDetector.
func NewFakeFaceDetect ¶
func NewFakeFaceDetect(detections []facedetect.Face, err error) *FakeFaceDetect
NewFakeFaceDetect returns a test double face detector. Parameters passed will be returned by the DetectFaces function.
func (FakeFaceDetect) DetectFaces ¶
func (f FakeFaceDetect) DetectFaces(ctx context.Context, img io.Reader) ([]facedetect.Face, error)
DetectFaces returns the parameters given to constructor.
Click to show internal directories.
Click to hide internal directories.