MCPcopy Create free account
hub / github.com/docker/docker-agent / TestPrintAuthInfoText_Expired

Function TestPrintAuthInfoText_Expired

cmd/root/debug_auth_test.go:92–105  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

90}
91
92func TestPrintAuthInfoText_Expired(t *testing.T) {
93 t.Parallel()
94
95 info := &authInfo{
96 Token: "eyJhbGciOiJIUzI1NiJ9.xxxxxxxxxxxx.yyyyyyyy1234567890",
97 ExpiresAt: time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC),
98 Expired: true,
99 }
100
101 var buf bytes.Buffer
102 printAuthInfoText(&buf, info)
103
104 assert.Contains(t, buf.String(), "❌ Expired")
105}

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
printAuthInfoTextFunction · 0.85

Tested by

no test coverage detected