(trimmedLine, key string)
| 409 | } |
| 410 | |
| 411 | func matchesPathSegmentKey(trimmedLine, key string) bool { |
| 412 | keyPattern := regexp.MustCompile(`^` + regexp.QuoteMeta(key) + `\s*:`) |
| 413 | return keyPattern.MatchString(trimmedLine) |
| 414 | } |
| 415 | |
| 416 | func findNestedSectionEnd(lines []string, foundLine, baseIndentLevel int) int { |
| 417 | endLine := len(lines) - 1 // Default to end of file |
no test coverage detected