go-ansible/test_primitives_test.go
Virgil 763068b0a1 chore: finish ax v0.8.0 cleanup
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-27 04:32:36 +00:00

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)
}