(ctx *Context, spec ValueSpec)
| 17 | } |
| 18 | |
| 19 | func materializeValueSpecSafely(ctx *Context, spec ValueSpec) (value *Value, err error) { |
| 20 | defer func() { |
| 21 | if recovered := recover(); recovered != nil { |
| 22 | err = fmt.Errorf("panic during materialize: %v", recovered) |
| 23 | } |
| 24 | }() |
| 25 | |
| 26 | return spec.Materialize(ctx) |
| 27 | } |
| 28 | |
| 29 | // MarshalSpec materializes a value via Context.Marshal. |
| 30 | type MarshalSpec struct { |
no test coverage detected