# Functions
AppendCodeAtTheEnd appends the given code at the end of the file.
AppendCodeIfNotExist checks if the code does not already exist in the file, and if not, appends it to the end.
CommentCode searches for target in the file and adds the comment prefix to the target content.
EnsureExistAndReplace check if the content exists and then do the replace.
GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.
HasFileContentWith check if given `text` can be found in file.
InsertCode searches target content in the file and insert `toInsert` after the target.
InsertCodeIfNotExist insert code if it does not already exists.
RandomSuffix returns a 4-letter string.
ReplaceInFile replaces all instances of old with new in the file at path.
ReplaceRegexInFile finds all strings that match `match` and replaces them with `replace` in the file at path.
RunCmd prints the provided message and command and then executes it binding stdout and stderr.
UncommentCode searches for target in the file and remove the comment prefix of the target content.
YesNo reads from stdin looking for one of "y", "yes", "n", "no" and returns true for "y" and false for "n".
# Constants
KubebuilderBinName define the name of the kubebuilder binary to be used in the tests.