MCPcopy Create free account
hub / github.com/docker/cli / TestNodeAddrOptionSetHostOnlyIPv6

Function TestNodeAddrOptionSetHostOnlyIPv6

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

Source from the content-addressed store, hash-verified

21}
22
23func TestNodeAddrOptionSetHostOnlyIPv6(t *testing.T) {
24 opt := NewListenAddrOption()
25 assert.NilError(t, opt.Set("::1"))
26 assert.Check(t, is.Equal("[::1]:2377", opt.Value()))
27}
28
29func TestNodeAddrOptionSetPortOnly(t *testing.T) {
30 opt := NewListenAddrOption()

Callers

nothing calls this directly

Calls 3

NewListenAddrOptionFunction · 0.85
ValueMethod · 0.65
SetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…