cleveland-0.3.0: Testing framework for Morley.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Cleveland.Doc.Michelson

Description

Testing predicates for documentation of Michelson contracts

Synopsis

Documentation

testDocBasic :: [DocTest] Source #

Base properties which should comply for all documentations.

Individual test predicates

testContractNameAtTop :: DocTest Source #

Check that contract documentation is wrapped with contractName.

testNoGitInfo :: DocTest Source #

Check that contracts themselves do not set the git revision. It is supposed to be filled only in the executable.

testDocNotEmpty :: DocTest Source #

Check that there is at least one non-grouping doc item.

If there is no such, rendered documentation will be empty which signals about most of the documentation pieces being lost.

testNoAdjacentDescriptions :: DocTest Source #

Check that no group contains two DDescription items.

Normally such behaviour is allowed and can be exploited, but often it is not and multiple descriptions appearence under the same group signals about missing grouping wrapper (e.g. use of caseT instead of entryCase).

testStorageIsDocumented :: DocTest Source #

Test whether storage documentation is included in the contract's documentation.

Re-exports