(t *testing.T)
| 15 | func (p Populator) Populate(target interface{}) error { return nil } |
| 16 | |
| 17 | func TestNewUploadManagerFactory(t *testing.T) { |
| 18 | s3out := provideFactory(&providersOption{})(factoryIn{ |
| 19 | Conf: config.MapAdapter{"s3": map[string]S3Config{ |
| 20 | "default": {}, |
| 21 | "alternative": {}, |
| 22 | }}, |
| 23 | Populator: Populator{}, |
| 24 | }) |
| 25 | def, err := s3out.Factory.Make("default") |
| 26 | assert.NoError(t, err) |
| 27 | assert.NotNil(t, def) |
| 28 | alt, err := s3out.Factory.Make("alternative") |
| 29 | assert.NoError(t, err) |
| 30 | assert.NotNil(t, alt) |
| 31 | } |
| 32 | |
| 33 | func TestNewUploadManagerFactory_customOption(t *testing.T) { |
| 34 | dispatcher := &events.SyncDispatcher{} |
nothing calls this directly
no test coverage detected