package tezt

  1. Overview
  2. Docs

Test Selection Language.

val parse : string -> TSL_AST.t option

Parse a TSL expression.

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

Convert a TSL expression to a string.

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

Environment in which to evaluate TSL expressions.

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

Evaluate a TSL expression.

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

Make a conjunction from a list.

val 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".
val tags : TSL_AST.t -> string list

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

OCaml

Innovation. Community. Security.