ESpec.DocExample (ESpec v1.10.0)

View Source

Defines the 'extract' method with parse module content and return %ESpec.DocExample{} structs. The struct is used by 'ESpec.DocTest' module to build the specs.

Summary

Functions

DocExample struct: lhs - console input, rhs - console output, fun_arity - {fun, arity} tuple, line - line where function is definde, type - define the doc spec type (:test, :error or :inspect). Read 'ESpec.DocTest' doc for more info.

Extract module docs and returns a list of %ESpec.DocExample{} structs

Functions

%ESpec.DocExample{}

(struct)

DocExample struct: lhs - console input, rhs - console output, fun_arity - {fun, arity} tuple, line - line where function is definde, type - define the doc spec type (:test, :error or :inspect). Read 'ESpec.DocTest' doc for more info.

extract(module)

Extract module docs and returns a list of %ESpec.DocExample{} structs

to_struct(map)