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

Function TestSetFromArrayError

channels/set_test.go:68–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func TestSetFromArrayError(t *testing.T) {
69 _, err := SetFromArray([]string{""}, RemoveStar)
70 assert.True(t, err != nil, "SetFromArray didn't return an error")
71 _, err = SetFromArray([]string{"chan1", "chan2", "bogus,name", "chan3"}, RemoveStar)
72 assert.True(t, err != nil, "SetFromArray didn't return an error")
73}
74
75func TestSetFromArrayNoValidate(t *testing.T) {
76 testCases := []struct {

Callers

nothing calls this directly

Calls 1

SetFromArrayFunction · 0.70

Tested by

no test coverage detected