MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / BaseSetOf

Function BaseSetOf

channels/util_testing.go:22–28  ·  view source on GitHub ↗

BaseSetOf a set from zero or more inline string arguments. Channel names must be valid, else the function will panic, so this should only be called with hardcoded known-valid strings.

(tb testing.TB, names ...string)

Source from the content-addressed store, hash-verified

20// Channel names must be valid, else the function will panic, so this should only be called
21// with hardcoded known-valid strings.
22func BaseSetOf(tb testing.TB, names ...string) base.Set {
23 set, err := SetFromArray(names, KeepStar)
24 if err != nil {
25 tb.Fatalf("channels.SetOf failed: %v", err)
26 }
27 return set
28}

Callers 15

TestInitRoleFunction · 0.92
TestCanSeeChannelSinceFunction · 0.92
TestGetAddedChannelsFunction · 0.92
TestSessionExtensionFunction · 0.92
TestStarAccessFunction · 0.92
TestNumAccessErrorsFunction · 0.92
TestAllDocsAccessControlFunction · 0.92
TestChannelAccessChangesFunction · 0.92
TestAccessOnTombstoneFunction · 0.92

Calls 2

SetFromArrayFunction · 0.70
FatalfMethod · 0.45

Tested by 15

TestInitRoleFunction · 0.74
TestCanSeeChannelSinceFunction · 0.74
TestGetAddedChannelsFunction · 0.74
TestSessionExtensionFunction · 0.74
TestStarAccessFunction · 0.74
TestNumAccessErrorsFunction · 0.74
TestAllDocsAccessControlFunction · 0.74
TestChannelAccessChangesFunction · 0.74
TestAccessOnTombstoneFunction · 0.74