(ctx context.Context, arg *call.Argument)
| 162 | } |
| 163 | |
| 164 | func resultCallArgFromRecipeArgument(ctx context.Context, arg *call.Argument) (*ResultCallArg, error) { |
| 165 | if arg == nil { |
| 166 | return nil, nil |
| 167 | } |
| 168 | value, err := resultCallLiteralFromRecipeLiteral(ctx, arg.Value()) |
| 169 | if err != nil { |
| 170 | return nil, err |
| 171 | } |
| 172 | return &ResultCallArg{ |
| 173 | Name: arg.Name(), |
| 174 | IsSensitive: arg.IsSensitive(), |
| 175 | Value: value, |
| 176 | }, nil |
| 177 | } |
| 178 | |
| 179 | //nolint:dupl // symmetric with resultCallLiteralFromCallLiteral; the two differ in how structural input digests get resolved |
| 180 | func resultCallLiteralFromRecipeLiteral(ctx context.Context, lit call.Literal) (*ResultCallLiteral, error) { |
no test coverage detected