Expand description
The decorator spec module
Structsยง
- Account
Value - A property of an account, such as its balance, set before the test or expected after it
- EnvOverrides
- Transaction and block fields a testโs decorators override;
Nonekeeps the runnerโs value - Evaluator ๐
- Evaluates decorator argument values against the contract and the testโs addresses
- Expected
Slot - A storage slot of an account and the value it must hold after the test
- Flag
Args ๐ - The arguments of a flag, checked against the positional count and keys it accepts
- Spec
Context - Addresses that decorator arguments can refer to by name
- Storage
Slot - A storage slot of an account with its value, set before the test or expected after it
- Test
Spec - The setup a testโs decorators ask for before the test call
Enumsยง
- Decorator
Kind ๐ - The decorator flags
hnc testunderstands - Expected
Value - The value an
expect_balanceorexpect_storageflag expects after the test - Outcome
Flag ๐ - The flags that say how the test must end; a test can have only one of them
Functionsยง
- check_
account_ ๐once - Fails when a flag that sets or checks an account was already given for the same address
- check_
single_ ๐use - Fails when a flag that may appear only once was already given
- decorator_
error ๐ - An error pointing at a decorator flag the runner cannot apply
- joined_
span ๐ - The source of two flags, so a duplicate points at both places
- single_
arg ๐ - The only argument of a flag that takes one value
- skip_
reason ๐ - The reason a
skipflag gives, if any - skipped
- Whether a testโs decorator skips it, with the reason when given. The runner checks this before it compiles the test, so a skipped test may be unfinished.