Skip to main content

TestableTest

TestableTest#

Functions#

constructor(address _timerAddress) (public)
getTestableTimeAndBlockTime() → uint256 testableTime, uint256 blockTime (external)
setCurrentTime(uint256 time) (external)

Sets the current time.

Will revert if not running in test mode.

Parameters:#

  • time: timestamp to set current Testable time to.
getCurrentTime() → uint256 (public)

Gets the current time. Will return the last time set in setCurrentTime if running in test mode. Otherwise, it will return the block timestamp.

Modifiers#

onlyIfTest()

Reverts if not running in test mode.