(nestedImportPath, nestedBaseDir, baseDir string, nestedRemoteOrigin *remoteImportOrigin, nestedFullPath string)
| 455 | } |
| 456 | |
| 457 | func canonicalizeNestedImportPath(nestedImportPath, nestedBaseDir, baseDir string, nestedRemoteOrigin *remoteImportOrigin, nestedFullPath string) string { |
| 458 | if nestedRemoteOrigin != nil || nestedBaseDir == baseDir { |
| 459 | return nestedImportPath |
| 460 | } |
| 461 | rel, err := filepath.Rel(baseDir, nestedFullPath) |
| 462 | if err != nil { |
| 463 | return nestedImportPath |
| 464 | } |
| 465 | return filepath.ToSlash(rel) |
| 466 | } |
| 467 | |
| 468 | func enqueueNestedVisitedPath(state *importBFSState, nestedImportPath, nestedFullPath, nestedSectionName, baseDir string, inputs map[string]any, nestedRemoteOrigin *remoteImportOrigin) error { |
| 469 | if !setutil.Contains(state.visited, nestedFullPath) { |
no outgoing calls
no test coverage detected