NewDisabledStub returns a Provider stub that reports Enabled() == false. The type string is preserved so callers can distinguish provider families.
(name, providerType string)
| 23 | // NewDisabledStub returns a Provider stub that reports Enabled() == false. |
| 24 | // The type string is preserved so callers can distinguish provider families. |
| 25 | func NewDisabledStub(name, providerType string) *DisabledStub { |
| 26 | return &DisabledStub{name: name, providerType: providerType} |
| 27 | } |
| 28 | |
| 29 | func (d *DisabledStub) Type() string { return d.providerType } |
| 30 | func (d *DisabledStub) Name() string { return d.name } |
no outgoing calls
no test coverage detected