func main() { … } func pruneXML(suites *junitxml.JUnitTestSuites, maxBytes int) { … } func pruneStringIfNeeded(str *string, maxBytes int, msg string, args ...any) { … } // This function condenses the junit xml to have package name as top level identifier // and nesting under that. func pruneTESTS(suites *junitxml.JUnitTestSuites) { … } func fetchXML(xmlReader io.Reader) (*junitxml.JUnitTestSuites, error) { … } func streamXML(writer io.Writer, in *junitxml.JUnitTestSuites) error { … }