SetupSynchronizedSuite runs a setup function in its own CF context, creating and destroying a home directory around it.
(setup func())
| 64 | // SetupSynchronizedSuite runs a setup function in its own CF context, creating |
| 65 | // and destroying a home directory around it. |
| 66 | func SetupSynchronizedSuite(setup func()) { |
| 67 | homeDir := SetHomeDir() |
| 68 | SetAPI() |
| 69 | LoginCF() |
| 70 | setup() |
| 71 | DestroyHomeDir(homeDir) |
| 72 | } |
| 73 | |
| 74 | // DestroyHomeDir safely removes the given directory checking for errors. |
| 75 | func DestroyHomeDir(homeDir string) { |
no test coverage detected