v0.34.0
testcase.Contract & testcase.RunContract
Contract meant to represent a Role Interface Contract.
A role interface is a static code contract that expresses behavioral expectations as a set of method signatures.
A role interface used by one or many consumers.
These consumers often use implicit assumptions about how methods of the role interface behave.
Using these assumptions makes it possible to simplify the consumer code.
In testcase convention, instead of relying on implicit assumptions, the developer should create an explicit interface testing suite, in other words, a Contract.
The code that supplies a role interface then able to import a role interface Contract,
and confirm if the expected behavior is fulfilled by the implementation.
further references: