MCPcopy Index your code
hub / github.com/cli/cli / TestUpdateAvailable_NoLatestVersion

Function TestUpdateAvailable_NoLatestVersion

pkg/cmd/extension/extension_test.go:26–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24}
25
26func TestUpdateAvailable_NoLatestVersion(t *testing.T) {
27 e := &Extension{
28 kind: BinaryKind,
29 currentVersion: "1.0.0",
30 }
31
32 assert.False(t, e.UpdateAvailable())
33}
34
35func TestUpdateAvailable_CurrentVersionIsLatestVersion(t *testing.T) {
36 e := &Extension{

Callers

nothing calls this directly

Calls 1

UpdateAvailableMethod · 0.95

Tested by

no test coverage detected