MCPcopy Index your code
hub / github.com/docker/cli / TestExternalCAOptionMultiple

Function TestExternalCAOptionMultiple

cli/command/swarm/opts_test.go:105–111  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

103}
104
105func TestExternalCAOptionMultiple(t *testing.T) {
106 opt := &ExternalCAOption{}
107 assert.NilError(t, opt.Set("protocol=cfssl,url=https://example.com"))
108 assert.NilError(t, opt.Set("protocol=CFSSL,url=anything"))
109 assert.Check(t, is.Len(opt.Value(), 2))
110 assert.Check(t, is.Equal("cfssl: https://example.com, cfssl: anything", opt.String()))
111}

Callers

nothing calls this directly

Calls 4

SetMethod · 0.95
ValueMethod · 0.95
StringMethod · 0.95
LenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…