Expect

Structs

_BoolExpectation

struct _BoolExpectation {
	bool actual
	_BoolExpectationNot not
}

_BoolExpectationNot

struct _BoolExpectationNot {
	bool actual
}

_UintExpectation

struct _UintExpectation {
	uint256 actual
	_UintExpectationNot not
}

_UintExpectationNot

struct _UintExpectationNot {
	uint256 actual
}

_IntExpectation

struct _IntExpectation {
	int256 actual
	_IntExpectationNot not
}

_IntExpectationNot

struct _IntExpectationNot {
	int256 actual
}

_AddressExpectation

struct _AddressExpectation {
	address actual
	_AddressExpectationNot not
}

_AddressExpectationNot

struct _AddressExpectationNot {
	address actual
}

_Bytes32Expectation

struct _Bytes32Expectation {
	bytes32 actual
	_Bytes32ExpectationNot not
}

_Bytes32ExpectationNot

struct _Bytes32ExpectationNot {
	bytes32 actual
}

_BytesExpectation

struct _BytesExpectation {
	bytes actual
	_BytesExpectationNot not
}

_BytesExpectationNot

struct _BytesExpectationNot {
	bytes actual
}

_StringExpectation

struct _StringExpectation {
	string actual
	_StringExpectationNot not
}

_StringExpectationNot

struct _StringExpectationNot {
	string actual
}

_CallExpectation

struct _CallExpectation {
	Call call
	_CallExpectationNot not
}

_CallExpectationNot

struct _CallExpectationNot {
	Call call
}

Functions

expect(bool actual) → (_BoolExpectation)

expect(uint256 actual) → (_UintExpectation)

expect(int256 actual) → (_IntExpectation)

expect(address actual) → (_AddressExpectation)

expect(bytes32 actual) → (_Bytes32Expectation)

expect(bytes actual) → (_BytesExpectation)

expect(string actual) → (_StringExpectation)

expect(Call call) → (_CallExpectation)

any() → (bytes32)

ExpectLib

toEqual(_BoolExpectation self, bool expected)

toEqual(_BoolExpectation self, bool expected, string message)

toEqual(_BoolExpectationNot self, bool expected)

toEqual(_BoolExpectationNot self, bool expected, string message)

toBeTrue(_BoolExpectation self)

toBeTrue(_BoolExpectation self, string message)

toBeFalse(_BoolExpectation self)

toBeFalse(_BoolExpectation self, string message)

toEqual(_AddressExpectation self, address expected)

toEqual(_AddressExpectation self, address expected, string message)

toEqual(_AddressExpectationNot self, address expected)

toEqual(_AddressExpectationNot self, address expected, string message)

toBeAContract(_AddressExpectation self)

toBeAContract(_AddressExpectation self, string message)

toBeAContract(_AddressExpectationNot self)

toBeAContract(_AddressExpectationNot self, string message)

toEqual(_Bytes32Expectation self, bytes32 expected)

toEqual(_Bytes32Expectation self, bytes32 expected, string message)

toEqual(_Bytes32ExpectationNot self, bytes32 expected)

toEqual(_Bytes32ExpectationNot self, bytes32 expected, string message)

toBeTheHashOf(_Bytes32Expectation self, bytes data)

toBeTheHashOf(_Bytes32Expectation self, bytes data, string message)

toBeTheHashOf(_Bytes32ExpectationNot self, bytes data)

toBeTheHashOf(_Bytes32ExpectationNot self, bytes data, string message)

toEqual(_BytesExpectation self, bytes expected)

toEqual(_BytesExpectation self, bytes expected, string message)

toEqual(_BytesExpectationNot self, bytes expected)

toEqual(_BytesExpectationNot self, bytes expected, string message)

toEqual(_StringExpectation self, string expected)

toEqual(_StringExpectation self, string expected, string message)

toEqual(_StringExpectationNot self, string expected)

toEqual(_StringExpectationNot self, string expected, string message)

toContain(_StringExpectation self, string contained)

toContain(_StringExpectation self, string contained, string message)

toContain(_StringExpectationNot self, string contained)

toContain(_StringExpectationNot self, string contained, string message)

toHaveLength(_StringExpectation self, uint256 expected)

toHaveLength(_StringExpectation self, uint256 expected, string message)

toHaveLength(_StringExpectationNot self, uint256 expected)

toHaveLength(_StringExpectationNot self, uint256 expected, string message)

toEqual(_UintExpectation self, uint256 expected)

toEqual(_UintExpectation self, uint256 expected, string message)

toEqual(_UintExpectationNot self, uint256 expected)

toEqual(_UintExpectationNot self, uint256 expected, string message)

toBeCloseTo(_UintExpectation self, uint256 expected, uint256 d)

toBeCloseTo(_UintExpectation self, uint256 expected, uint256 d, string message)

toBeLessThan(_UintExpectation self, uint256 expected)

toBeLessThan(_UintExpectation self, uint256 expected, string message)

toBeLessThanOrEqual(_UintExpectation self, uint256 expected)

toBeLessThanOrEqual(_UintExpectation self, uint256 expected, string message)

toBeGreaterThan(_UintExpectation self, uint256 expected)

toBeGreaterThan(_UintExpectation self, uint256 expected, string message)

toBeGreaterThanOrEqual(_UintExpectation self, uint256 expected)

toBeGreaterThanOrEqual(_UintExpectation self, uint256 expected, string message)

toEqual(_IntExpectation self, int256 expected)

toEqual(_IntExpectation self, int256 expected, string message)

toEqual(_IntExpectationNot self, int256 expected)

toEqual(_IntExpectationNot self, int256 expected, string message)

toBeCloseTo(_IntExpectation self, int256 expected, uint256 d)

toBeCloseTo(_IntExpectation self, int256 expected, uint256 d, string message)

toBeLessThan(_IntExpectation self, int256 expected)

toBeLessThan(_IntExpectation self, int256 expected, string message)

toBeLessThanOrEqual(_IntExpectation self, int256 expected)

toBeLessThanOrEqual(_IntExpectation self, int256 expected, string message)

toBeGreaterThan(_IntExpectation self, int256 expected)

toBeGreaterThan(_IntExpectation self, int256 expected, string message)

toBeGreaterThanOrEqual(_IntExpectation self, int256 expected)

toBeGreaterThanOrEqual(_IntExpectation self, int256 expected, string message)

toHaveReverted(_CallExpectation self)

toHaveReverted(_CallExpectation self, string message)

toHaveRevertedWith(_CallExpectation self, bytes4 expectedSelector)

toHaveRevertedWith(_CallExpectation self, bytes4 expectedSelector, string message)

toHaveRevertedWith(_CallExpectationNot self, bytes4 expectedSelector)

toHaveRevertedWith(_CallExpectationNot self, bytes4 expectedSelector, string message)

toHaveRevertedWith(_CallExpectation self, string error)

toHaveRevertedWith(_CallExpectation self, string error, string message)

toHaveRevertedWith(_CallExpectationNot self, string error)

toHaveRevertedWith(_CallExpectationNot self, string error, string message)

toHaveRevertedWith(_CallExpectation self, bytes expectedError)

toHaveRevertedWith(_CallExpectation self, bytes expectedError, string message)

toHaveRevertedWith(_CallExpectationNot self, bytes expectedError)

toHaveRevertedWith(_CallExpectationNot self, bytes expectedError, string message)

toHaveSucceeded(_CallExpectation self)

toHaveSucceeded(_CallExpectation self, string message)

toHaveEmitted(_CallExpectation self, string eventSig)

toHaveEmitted(_CallExpectation self, string eventSig, string message)

toHaveEmitted(_CallExpectation self, bytes32[1] topics)

toHaveEmitted(_CallExpectation self, bytes32[1] topics, string message)

toHaveEmitted(_CallExpectation self, bytes32[2] topics)

toHaveEmitted(_CallExpectation self, bytes32[2] topics, string message)

toHaveEmitted(_CallExpectation self, bytes32[3] topics)

toHaveEmitted(_CallExpectation self, bytes32[3] topics, string message)

toHaveEmitted(_CallExpectation self, bytes32[4] topics)

toHaveEmitted(_CallExpectation self, bytes32[4] topics, string message)

toHaveEmitted(_CallExpectation self, string eventSig, bytes data)

toHaveEmitted(_CallExpectation self, string eventSig, bytes data, string message)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[1] topics)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[1] topics, string message)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[2] topics)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[2] topics, string message)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[3] topics)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[3] topics, string message)

toHaveEmitted(_CallExpectation self, bytes32[1] topics, bytes data)

toHaveEmitted(_CallExpectation self, bytes32[1] topics, bytes data, string message)

toHaveEmitted(_CallExpectation self, bytes32[2] topics, bytes data)

toHaveEmitted(_CallExpectation self, bytes32[2] topics, bytes data, string message)

toHaveEmitted(_CallExpectation self, bytes32[3] topics, bytes data)

toHaveEmitted(_CallExpectation self, bytes32[3] topics, bytes data, string message)

toHaveEmitted(_CallExpectation self, bytes32[4] topics, bytes data)

toHaveEmitted(_CallExpectation self, bytes32[4] topics, bytes data, string message)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[1] topics, bytes data)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[1] topics, bytes data, string message)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[2] topics, bytes data)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[2] topics, bytes data, string message)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[3] topics, bytes data)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[3] topics, bytes data, string message)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[] topics, bytes data)

toHaveEmitted(_CallExpectation self, string eventSig, bytes32[] topics, bytes data, string message)

printMessage(string message)

AnyLib

value() → (bytes32)

check(bytes32 val) → (bool res)