()
| 274 | } |
| 275 | |
| 276 | func getEnvVarNames() map[string]bool { |
| 277 | envMap := make(map[string]bool) |
| 278 | for _, e := range os.Environ() { |
| 279 | parts := strings.SplitN(e, "=", 2) |
| 280 | if len(parts) > 0 { |
| 281 | envMap[parts[0]] = true |
| 282 | } |
| 283 | } |
| 284 | return envMap |
| 285 | } |
| 286 | |
| 287 | // isEnvVar checks if a variable is from OS environment or auto-generated by Task. |
| 288 | func isEnvVar(key string, envVars map[string]bool) bool { |
no outgoing calls
no test coverage detected
searching dependent graphs…