fixtures

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fixtures contains code for creating ProfileService fixtures and is used in various parts of the code. For testing use only.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSuccessfulGetEntityName

func WithSuccessfulGetEntityName(name string) func(mock GitHubMock)

func WithSuccessfulGetPackageByName

func WithSuccessfulGetPackageByName(artifact any) func(mock GitHubMock)

func WithSuccessfulGetPackageVersionById

func WithSuccessfulGetPackageVersionById(version any) func(mock GitHubMock)

func WithSuccessfulGetPullRequest

func WithSuccessfulGetPullRequest(pr any) func(mock GitHubMock)

Types

type GitHubMock

type GitHubMock = *ghmock.MockGitHub

type GitHubMockBuilder

type GitHubMockBuilder = func(*gomock.Controller) GitHubMock

func NewGitHubMock

func NewGitHubMock(opts ...func(mock GitHubMock)) GitHubMockBuilder

Jump to

Keyboard shortcuts

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