func FileWriter(t *testing.T) (*os.File, error) {
	// the ReplaceAll ensures no nested directories are needed when sub-tests are used
	filename := strings.ReplaceAll(fmt.Sprintf("%s.log", t.Name()), "/", "_")

	return os.OpenFile(filename, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
}
// FileWriter is a mock terminal UI writer which sends command output
// to a file named after the test being run
FileWriter is a mock terminal UI writer which sends command output
to a file named after the test being run
// FileWriter is a mock terminal UI writer which sends command output // to a file named after the test being run
func FileWriter(t *testing.T) (*os.File, error) {
	filename := strings.ReplaceAll(fmt.Sprintf("%s.log", t.Name()), "/", "_")
	return os.OpenFile(filename, os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
}
func FileWriter ( t * testing . T ) ( * os . File , error ) { filename := strings . ReplaceAll ( fmt . Sprintf ( " " , t . Name ( ) ) , " " , " " ) return os . OpenFile ( filename , os . O_APPEND | os . O_WRONLY | os . O_CREATE , 0600 ) }
FileWriter is a mock terminal UI writer which sends command output
to a file named after the test being run
FileWriter is a mock terminal UI writer which sends command output to a file named after the test being run
// the ReplaceAll ensures no nested directories are needed when sub-tests are used