Documentation ¶
Index ¶
- func Compare(out, model []byte) error
- func CompareFiles(outFile, modelFile string) error
- func CompareHTTPResponse(body []byte, modelFile string) error
- func CompareToFile(out []byte, modelFile string) error
- func GenerateStrings(prefix string, count int) []string
- func IsWithinPercentage(count int, total int, rate float64, tolerance float64) bool
- func NewNonce() string
- func SetupCookieJar(username, pass, gateway string) (*cookiejar.Jar, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
Compare compares two byte slices. It returns an error with a contextual diff if they are not equal.
func CompareFiles ¶
CompareFiles compares the content of two files
func CompareHTTPResponse ¶
CompareHTTPResponse compares a HTTP Response body with a model HTML file modelFile is the file name. Not the file path. resources directory is github.com/maistra/maistra-test-tool/testdata/resources
func CompareToFile ¶
CompareToFile compares a content with a file
func GenerateStrings ¶
func IsWithinPercentage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.