(buffer *bytes.Buffer, parents []string, nameVersion, what string)
| 281 | } |
| 282 | |
| 283 | func (p Port) writeSectionTitle(buffer *bytes.Buffer, parents []string, nameVersion, what string) { |
| 284 | switch p.PortType { |
| 285 | case portTypePort: |
| 286 | buffer.WriteString(newDivider(parents, nameVersion, what)) |
| 287 | case portTypeDependency: |
| 288 | buffer.WriteString(newDivider(parents, fmt.Sprintf("dependency: %s", nameVersion), what)) |
| 289 | case portTypeDevDependency: |
| 290 | buffer.WriteString(newDivider(parents, fmt.Sprintf("dev_dependency: %s", nameVersion), what)) |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | func (p Port) readPatch(patchFileName string) (string, error) { |
| 295 | patchFilePath := filepath.Join(filepath.Dir(p.BuildConfig.PortFile), patchFileName) |
no test coverage detected