(t *testing.T)
| 146 | } |
| 147 | |
| 148 | func TestC_Provide(t *testing.T) { |
| 149 | c := New() |
| 150 | c.Provide(di.Deps{ |
| 151 | func() m1 { return m1{} }, |
| 152 | func() m2 { return m2{} }, |
| 153 | }) |
| 154 | c.Invoke(func(m1, m2) {}) |
| 155 | assert.Len(t, c.Modules(), 2) |
| 156 | } |
| 157 | |
| 158 | type ( |
| 159 | a struct{} |