FactorySpec materializes a value by running a Context-aware factory.
| 37 | |
| 38 | // FactorySpec materializes a value by running a Context-aware factory. |
| 39 | type FactorySpec struct { |
| 40 | Factory func(ctx *Context) (*Value, error) |
| 41 | } |
| 42 | |
| 43 | func (s FactorySpec) Materialize(ctx *Context) (*Value, error) { |
| 44 | if s.Factory == nil { |
nothing calls this directly
no outgoing calls
no test coverage detected