Documentation ¶
Overview ¶
Package sqlhelp contains testing helpers for sql transactions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmpIfErr ¶
CmpIfErr is the macro which'll take an error and the expected cases (old actual and new) In case of being errored, it'll cmp actual with old (to check if there are undesired changes) Else, it'll cmp actual with new (to check if the changes are correct)
func CmpWithGoldenFile ¶
CmpWithGoldenFile performs cmp over the goldenFile and the got bytes given Note: avoid testdata/%s when giving the filename
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.