(t *testing.T)
| 37 | ) |
| 38 | |
| 39 | func TestNew(t *testing.T) { |
| 40 | a := assertions.New(t) |
| 41 | |
| 42 | logger := test.GetLogger(t) |
| 43 | |
| 44 | _, err := component.New(logger, &component.Config{}) |
| 45 | a.So(err, should.BeNil) |
| 46 | |
| 47 | mustNew := func() { component.MustNew(logger, &component.Config{}) } |
| 48 | a.So(mustNew, should.NotPanic) |
| 49 | } |
| 50 | |
| 51 | func TestLogger(t *testing.T) { |
| 52 | a := assertions.New(t) |