(env map[string]string)
| 301 | } |
| 302 | |
| 303 | func matchEnvironment(env map[string]string) (bool, error) { |
| 304 | for k, v := range env { |
| 305 | match, err := regexp.MatchString(sanitizeMatchExpression(v), os.Getenv(k)) |
| 306 | if err != nil { |
| 307 | return false, err |
| 308 | } |
| 309 | |
| 310 | if !match { |
| 311 | return false, nil |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | return true, nil |
| 316 | } |
| 317 | |
| 318 | func matchVars(ctx context.Context, activationVars map[string]string, resolver variable.Resolver) (bool, error) { |
| 319 | for k, v := range activationVars { |
no test coverage detected