Mockingbird Documentation 0.16.0

Protocol Mock

public protocol Mock

All generated mocks conform to this protocol.

%3 Mock Mock StaticMock StaticMock StaticMock->Mock

Types Conforming to Mock

StaticMock

Used to store invocations on static or class scoped methods.

Requirements

mocking​Context

var mockingContext: MockingContext

Information about received invocations.

stubbing​Context

var stubbingContext: StubbingContext

Implementations for stubbing behaviors.

mock​Metadata

var mockMetadata: MockMetadata

Static metadata about the mock created at generation time.

source​Location

var sourceLocation: SourceLocation?

Where the mock was initialized.