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

Function TestNodeAddrOptionSetPortOnly

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

Source from the content-addressed store, hash-verified

27}
28
29func TestNodeAddrOptionSetPortOnly(t *testing.T) {
30 opt := NewListenAddrOption()
31 assert.NilError(t, opt.Set(":4545"))
32 assert.Check(t, is.Equal("0.0.0.0:4545", opt.Value()))
33}
34
35func TestNodeAddrOptionSetInvalidFormat(t *testing.T) {
36 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…