package bugreport

import "github.com/golang/mock/mockgen/tests/unexported_method"

Index

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

Source Files

bugreport.go bugreport_mock.go

Version
v1.0.0
Published
Jul 22, 2017
Platform
js/wasm
Imports
3 packages
Last checked
24 minutes ago

Tools for package owners.