bugreport

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

Unexported Method

From #52, this tests an unexported method in the mocked interface.

Documentation

Overview

Package bugreport is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallExample

func CallExample(e Example)

CallExample is a simple function that uses the interface

Types

type Example

type Example interface {
	// contains filtered or unexported methods
}

Example is an interface with a non exported method

type MockExample

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

MockExample is a mock of Example interface.

func NewMockExample

func NewMockExample(ctrl *gomock.Controller) *MockExample

NewMockExample creates a new mock instance.

func (*MockExample) EXPECT

func (m *MockExample) EXPECT() *MockExampleMockRecorder

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

type MockExampleMockRecorder

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

MockExampleMockRecorder is the mock recorder for MockExample.

Jump to

Keyboard shortcuts

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