Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BCrypt ¶
BCrypt is a Matcher that matches if the hashed parameter to the mock function is equivalent to the password.
Example usage:
dbMock.EXPECT(). Insert(gomml.BCrypt("password"). Return(errors.New("DB error"))
func Cmp ¶
Cmp is a Matcher that matches using go-cmp.
Example usage:
dbMock.EXPECT(). Insert(gomml.Cmp(&someComplex).
func Consistent ¶
Consistent is a Matcher that matches with consistent.
The value must be the time between the constructor was called and it is validated.
Example usage:
consistentNow := gomml.Consistent(gomml.Now()) dbMock.EXPECT(). Insert(consistentNow, consistentNow).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.