MCPcopy Create free account
hub / github.com/couchbase/moss / TestNewCollection

Function TestNewCollection

collection_test.go:20–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18)
19
20func 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
37func TestNewCollectionCloseEvents(t *testing.T) {
38 events := map[EventKind]int{}

Callers

nothing calls this directly

Calls 3

StartMethod · 0.95
CloseMethod · 0.95
NewCollectionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…