package tezt

  1. Overview
  2. Docs
Test framework for unit tests, integration tests, and regression tests

Install

Dune Dependency

Authors

Maintainers

Sources

tezt-4.0.0.tar.bz2
md5=643f48378265ae18b7aab4675a1e836e
sha512=f399d4d8b935fc3dcb4354596c2b7fa26a019f99c83cb4c1d48b0e26c5bc6da13b2cad9792dd50420a88b777d3b8a1d67c7ddd0457322e65d311b859be03879f

doc/tezt.core/Tezt_core/TSL/index.html

Module Tezt_core.TSLSource

Test Selection Language.

Sourceval parse : string -> TSL_AST.t option

Parse a TSL expression.

Sourceval show : ?always_parenthesize:bool -> TSL_AST.t -> string

Convert a TSL expression to a string.

Sourcetype env = {
  1. file : string;
  2. title : string;
  3. tags : string list;
}

Environment in which to evaluate TSL expressions.

Sourceval eval : env -> TSL_AST.t -> bool

Evaluate a TSL expression.

Sourceval conjunction : TSL_AST.t list -> TSL_AST.t

Make a conjunction from a list.

Sourceval is_valid_tag : string -> bool

Test whether a string is a valid tag.

Tags:

  • must have a length between 1 and 32;
  • must only contain characters lowercase letters a-z, digits 0-9 or underscores _;
  • cannot be "true" nor "false".
Sourceval tags : TSL_AST.t -> string list

Get the list of tags that appear in a TSL expression.

OCaml

Innovation. Community. Security.