(ctx coretools.ExecutionContext, key, fallback string)
| 251 | } |
| 252 | |
| 253 | func stringFromContext(ctx coretools.ExecutionContext, key, fallback string) string { |
| 254 | if s, ok := ctx[key].(string); ok && s != "" { |
| 255 | return s |
| 256 | } |
| 257 | return fallback |
| 258 | } |
| 259 | |
| 260 | func copyAgentExtraContext(execCtx coretools.ExecutionContext) coretools.ExecutionContext { |
| 261 | out := coretools.ExecutionContext{} |
no outgoing calls
no test coverage detected