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

Function TestUpdateAvailable

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

Source from the content-addressed store, hash-verified

43}
44
45func TestUpdateAvailable(t *testing.T) {
46 e := &Extension{
47 kind: BinaryKind,
48 currentVersion: "1.0.0",
49 latestVersion: "1.1.0",
50 }
51
52 assert.True(t, e.UpdateAvailable())
53}
54
55func TestOwnerLocalExtension(t *testing.T) {
56 tempDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

UpdateAvailableMethod · 0.95

Tested by

no test coverage detected