@@ -390,47 +390,47 @@ func TestServiceDescriptor_Metadata(t *testing.T) {
390390func TestServiceDescriptor_EdgeCases (t * testing.T ) {
391391 tests := []struct {
392392 name string
393- setup func (t * testing.T ) godi.Collection
394- action func (collection godi.Collection ) error
393+ setup func (t * testing.T ) godi.ServiceCollection
394+ action func (collection godi.ServiceCollection ) error
395395 wantErr bool
396- check func (t * testing.T , collection godi.Collection )
396+ check func (t * testing.T , collection godi.ServiceCollection )
397397 }{
398398 {
399399 name : "empty struct as service" ,
400- setup : func (t * testing.T ) godi.Collection {
400+ setup : func (t * testing.T ) godi.ServiceCollection {
401401 return godi .NewServiceCollection ()
402402 },
403- action : func (collection godi.Collection ) error {
403+ action : func (collection godi.ServiceCollection ) error {
404404 return collection .AddSingleton (func () struct {} { return struct {}{} })
405405 },
406406 wantErr : false ,
407407 },
408408 {
409409 name : "nil interface return" ,
410- setup : func (t * testing.T ) godi.Collection {
410+ setup : func (t * testing.T ) godi.ServiceCollection {
411411 return godi .NewServiceCollection ()
412412 },
413- action : func (collection godi.Collection ) error {
413+ action : func (collection godi.ServiceCollection ) error {
414414 return collection .AddSingleton (func () testutil.TestLogger { return nil })
415415 },
416416 wantErr : false ,
417417 },
418418 {
419419 name : "error-only return" ,
420- setup : func (t * testing.T ) godi.Collection {
420+ setup : func (t * testing.T ) godi.ServiceCollection {
421421 return godi .NewServiceCollection ()
422422 },
423- action : func (collection godi.Collection ) error {
423+ action : func (collection godi.ServiceCollection ) error {
424424 return collection .AddSingleton (func () error { return nil })
425425 },
426426 wantErr : true ,
427427 },
428428 {
429429 name : "complex nested types" ,
430- setup : func (t * testing.T ) godi.Collection {
430+ setup : func (t * testing.T ) godi.ServiceCollection {
431431 return godi .NewServiceCollection ()
432432 },
433- action : func (collection godi.Collection ) error {
433+ action : func (collection godi.ServiceCollection ) error {
434434 type NestedService struct {
435435 Data map [string ][]chan <- func () error
436436 }
0 commit comments