proofs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0, BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventMock

type EventMock struct {
	mock.Mock
	// contains filtered or unexported fields
}

EventMock acts as a container for event mocks.

func NewEventMock

func NewEventMock(t *testing.T, notarization notarization.Notarization) *EventMock

NewEventMock creates a new EventMock.

func (*EventMock) AssertExpectations

func (e *EventMock) AssertExpectations(t mock.TestingT) bool

AssertExpectations asserts expectations.

func (*EventMock) DetachAll

func (e *EventMock) DetachAll()

DetachAll detaches all event handlers.

func (*EventMock) Expect

func (e *EventMock) Expect(eventName string, arguments ...interface{})

Expect is a proxy for Mock.On() but keeping track of num of calls.

func (*EventMock) SlotCommittable

func (e *EventMock) SlotCommittable(details *notarization.SlotCommittedDetails)

SlotCommittable is the mocked SlotCommittable event.

Jump to

Keyboard shortcuts

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