MCPcopy Create free account
hub / github.com/cli/cli / TestExtensionDescriptionFallback

Function TestExtensionDescriptionFallback

pkg/cmd/extension/browse/browse_test.go:158–169  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

156}
157
158func TestExtensionDescriptionFallback(t *testing.T) {
159 t.Parallel()
160
161 // Given an extension has no repository description
162 entry := extEntry{FullName: "octo/gh-example"}
163
164 // When its display description is requested
165 description := entry.Description()
166
167 // Then a concrete fallback is returned
168 assert.Equal(t, "no description provided", description)
169}

Callers

nothing calls this directly

Calls 2

DescriptionMethod · 0.95
EqualMethod · 0.80

Tested by

no test coverage detected