mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
9789543f8f
* add mock package and use in invite tests * mock expired invite test
20 lines
281 B
Go
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
|
|
}
|