(t *testing.T)
| 18 | ) |
| 19 | |
| 20 | func TestNewCollection(t *testing.T) { |
| 21 | m, err := NewCollection(CollectionOptions{}) |
| 22 | if err != nil || m == nil { |
| 23 | t.Errorf("expected moss") |
| 24 | } |
| 25 | |
| 26 | err = m.Start() |
| 27 | if err != nil { |
| 28 | t.Errorf("expected Start ok") |
| 29 | } |
| 30 | |
| 31 | err = m.Close() |
| 32 | if err != nil { |
| 33 | t.Errorf("expected Close ok") |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | func TestNewCollectionCloseEvents(t *testing.T) { |
| 38 | events := map[EventKind]int{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…