ConvertPathToRegularExpression converts a windows file path into a string which may be embedded in a ginkgo-compatible regular expression.
(path string)
| 11 | // ConvertPathToRegularExpression converts a windows file path into a |
| 12 | // string which may be embedded in a ginkgo-compatible regular expression. |
| 13 | func ConvertPathToRegularExpression(path string) string { |
| 14 | return strings.Replace(path, "\\", "\\\\", -1) |
| 15 | } |
| 16 | |
| 17 | // TempFileWithContent writes a temp file with given content and return the |
| 18 | // file name. |
no outgoing calls
no test coverage detected