Documentation ¶ Index ¶ func CreateFile(t *testing.T, executable bool, contents string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CreateFile ¶ func CreateFile(t *testing.T, executable bool, contents string) (string, error) CreateFile is used to create a temp file with the given contents and executable permissions. It returns the name of the created file or error if file creation has failed. Types ¶ This section is empty. Source Files ¶ View all Source files testutil.go Click to show internal directories. Click to hide internal directories.