# Packages
Package xload contains testing helpers but for initialization.
# Functions
AddFileToFs creates a file with the given filename filled with the content on the baseFs.
AddFileToFsByName looks for the filename given over the related testdata dir and creates the file on the baseFs Notice the new file will be located in /{filename} path.
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).
CmpWithGoldenFile performs cmp over the goldenFile and the got bytes given Note: avoid testdata/%s when giving the filename.
IOExist wraps afero utility func for checking existances (.DirExists, .Exists) over the given args and handles the error given of given T.
IOReadFile wraps afero.ReadFile over the given args and handles the error given of given T.
No description provided by the author
No description provided by the author
ReadJsonnet reads the jsonnet given from the specified file It'll add the boilerplate of testdata/%s.jsonnet Is the broda of assist.ReadJsonnet, but in a t.Helper() version.