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

Struct ExtensionMock

pkg/extensions/extension_mock.go:56–130  ·  view source on GitHub ↗

ExtensionMock is a mock implementation of Extension. func TestSomethingThatUsesExtension(t *testing.T) { // make and configure a mocked Extension mockedExtension := &ExtensionMock{ CurrentVersionFunc: func() string { panic("mock out the CurrentVersion method") }, IsBinaryFunc: fu

Source from the content-addressed store, hash-verified

54//
55// }
56type ExtensionMock struct {
57 // CurrentVersionFunc mocks the CurrentVersion method.
58 CurrentVersionFunc func() string
59
60 // IsBinaryFunc mocks the IsBinary method.
61 IsBinaryFunc func() bool
62
63 // IsLocalFunc mocks the IsLocal method.
64 IsLocalFunc func() bool
65
66 // IsPinnedFunc mocks the IsPinned method.
67 IsPinnedFunc func() bool
68
69 // LatestVersionFunc mocks the LatestVersion method.
70 LatestVersionFunc func() string
71
72 // NameFunc mocks the Name method.
73 NameFunc func() string
74
75 // OwnerFunc mocks the Owner method.
76 OwnerFunc func() string
77
78 // PathFunc mocks the Path method.
79 PathFunc func() string
80
81 // URLFunc mocks the URL method.
82 URLFunc func() string
83
84 // UpdateAvailableFunc mocks the UpdateAvailable method.
85 UpdateAvailableFunc func() bool
86
87 // calls tracks calls to the methods.
88 calls struct {
89 // CurrentVersion holds details about calls to the CurrentVersion method.
90 CurrentVersion []struct {
91 }
92 // IsBinary holds details about calls to the IsBinary method.
93 IsBinary []struct {
94 }
95 // IsLocal holds details about calls to the IsLocal method.
96 IsLocal []struct {
97 }
98 // IsPinned holds details about calls to the IsPinned method.
99 IsPinned []struct {
100 }
101 // LatestVersion holds details about calls to the LatestVersion method.
102 LatestVersion []struct {
103 }
104 // Name holds details about calls to the Name method.
105 Name []struct {
106 }
107 // Owner holds details about calls to the Owner method.
108 Owner []struct {
109 }
110 // Path holds details about calls to the Path method.
111 Path []struct {
112 }
113 // URL holds details about calls to the URL method.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected