(content string, extractTools bool)
| 46 | } |
| 47 | |
| 48 | func handleNoIncludeFastPath(content string, extractTools bool) (string, bool) { |
| 49 | if hasIncludeDirectives(content) { |
| 50 | return "", false |
| 51 | } |
| 52 | includeExpanderLog.Print("Fast path: no include directives found") |
| 53 | if extractTools { |
| 54 | return "{}", true |
| 55 | } |
| 56 | if !strings.HasSuffix(content, "\n") { |
| 57 | return content + "\n", true |
| 58 | } |
| 59 | return content, true |
| 60 | } |
| 61 | |
| 62 | func expandIncludesIteratively(content, baseDir string, extractTools bool) (string, map[string]struct { |
| 63 | }, error) { |
no test coverage detected