fleet/server/mock/errors.go
Victor Vrantchan 9789543f8f add mock package and use in invite tests (#603)
* add mock package and use in invite tests

* mock expired invite test
2017-01-10 16:49:14 -05:00

20 lines
281 B
Go

package mock
type Error struct {
Message string
}
func (e *Error) Error() string {
return e.Message
}
// implement kolide.NotFoundError
func (e *Error) IsNotFound() bool {
return true
}
// implement kolide.AlreadyExistsError
func (e *Error) IsExists() bool {
return true
}