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

Function TestDisplayTrustRootNoRoot

cli/command/swarm/ca_test.go:57–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

55}
56
57func TestDisplayTrustRootNoRoot(t *testing.T) {
58 buffer := new(bytes.Buffer)
59 err := displayTrustRoot(buffer, client.SwarmInspectResult{})
60 assert.Error(t, err, "no CA information available")
61}
62
63type invalidCATestCases struct {
64 args []string

Callers

nothing calls this directly

Calls 2

displayTrustRootFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…