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

Function TestNodeAddrOptionSetHostOnly

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

Source from the content-addressed store, hash-verified

15}
16
17func TestNodeAddrOptionSetHostOnly(t *testing.T) {
18 opt := NewListenAddrOption()
19 assert.NilError(t, opt.Set("newhost"))
20 assert.Check(t, is.Equal("newhost:2377", opt.Value()))
21}
22
23func TestNodeAddrOptionSetHostOnlyIPv6(t *testing.T) {
24 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…