(t *testing.T)
| 156 | } |
| 157 | |
| 158 | func 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 | } |
nothing calls this directly
no test coverage detected