commands

package
v0.0.0-...-3f767c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package commands is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadMarkdownFileFromRepo

func ReadMarkdownFileFromRepo(ctx context.Context, client GitHubClient, owner, repo, path string) (string, error)

Types

type GitHubClient

type GitHubClient interface {
	GetContents(ctx context.Context, owner, repo, path string, opt *github.RepositoryContentGetOptions) (*github.RepositoryContent, []*github.RepositoryContent, *github.Response, error)
}

type MockGitHubClient

type MockGitHubClient struct {
	// contains filtered or unexported fields
}

MockGitHubClient is a mock of GitHubClient interface.

func NewMockGitHubClient

func NewMockGitHubClient(ctrl *gomock.Controller) *MockGitHubClient

NewMockGitHubClient creates a new mock instance.

func (*MockGitHubClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGitHubClient) GetContents

GetContents mocks base method.

type MockGitHubClientMockRecorder

type MockGitHubClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockGitHubClientMockRecorder is the mock recorder for MockGitHubClient.

func (*MockGitHubClientMockRecorder) GetContents

func (mr *MockGitHubClientMockRecorder) GetContents(ctx, owner, repo, path, opt interface{}) *gomock.Call

GetContents indicates an expected call of GetContents.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL