(withTrailingNewline bool)
| 89 | } |
| 90 | |
| 91 | func buildSetupBlock(withTrailingNewline bool) string { |
| 92 | block := strings.TrimSpace(setupTemplate) |
| 93 | if block == "" { |
| 94 | return "" |
| 95 | } |
| 96 | assembled := block |
| 97 | if withTrailingNewline { |
| 98 | return assembled + "\n" |
| 99 | } |
| 100 | return assembled |
| 101 | } |
| 102 | |
| 103 | func appendSetupBlock(existing string) string { |
| 104 | trimmed := strings.TrimRight(existing, "\n") |
no outgoing calls
no test coverage detected