21 lines
406 B
Go
21 lines
406 B
Go
package ansible
|
|
|
|
import (
|
|
"io/fs"
|
|
)
|
|
|
|
func readTestFile(path string) ([]byte, error) {
|
|
content, err := localFS.Read(path)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return []byte(content), nil
|
|
}
|
|
|
|
func writeTestFile(path string, content []byte, mode fs.FileMode) error {
|
|
return localFS.WriteMode(path, string(content), mode)
|
|
}
|
|
|
|
func joinStrings(parts []string, sep string) string {
|
|
return join(sep, parts)
|
|
}
|