module

Mocks

A utility library providing mock functionality. Intended for testing, but can be used anywhere.

Constants

VERSION = {{ (`shards version \"/tmp/tmp.KNDNCb/src/src\"`).stringify.chomp }}

Class methods

disable

Disables mock functionality. This can be used to disable mock functionality temporarily.

Source
enable

Enables mock functionality. This should be called by the test framework once it is ready.

Source
enabled?

Indicates whether mock functionality is enabled.

Source

Macros

fake_value(type)

Returns a fake value of the specified type. This is used to trick the compiler into inferring a specific type. This macro should only be used where strictly needed, and the value should never be used.

Source

Nested types