Mockingbird Documentation 0.16.0

Class Static​Mock

public class StaticMock: Mock

Used to store invocations on static or class scoped methods.

%3 StaticMock StaticMock Mock Mock StaticMock->Mock

Conforms To

Mock

All generated mocks conform to this protocol.

Properties

mocking​Context

let mockingContext

Information about received invocations.

stubbing​Context

let stubbingContext

Implementations for stubbing behaviors.

mock​Metadata

let mockMetadata

Static metadata about the mock created at generation time.

source​Location

var sourceLocation: SourceLocation?

Where the mock was initialized.