Created
April 15, 2017 06:57
-
-
Save eamonnmcevoy/9ec15ba62fce2d648096765ce3b31122 to your computer and use it in GitHub Desktop.
simple hash mock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mock | |
type Hash struct{} | |
func (h *Hash) Generate(s string) (string, error) { | |
return s, nil | |
} | |
func (h *Hash) Compare(hash string, s string) error { | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment