package tezt

  1. Overview
  2. Docs

Module Tezt_core.TSL_ASTSource

Abstract Syntax Tree of the Test Selection Language.

Sourcetype string_var =
  1. | File
  2. | Title

Test properties that can be queried using string operators.

Sourcetype int_var =
  1. | Memory

Test properties that can be queried using integer comparison operators.

Sourcetype float_var =
  1. | Duration

Test properties that can be queried using float comparison operators.

Sourcetype string_operator =
  1. | Is of string
  2. | Matches of Base.rex

Comparison operators for strings.

Sourcetype numeric_operator =
  1. | EQ
  2. | NE
  3. | GT
  4. | GE
  5. | LT
  6. | LE

Comparison operators for numbers.

Sourcetype t =
  1. | True
  2. | False
  3. | String_predicate of string_var * string_operator
  4. | Int_predicate of int_var * numeric_operator * int
  5. | Float_predicate of float_var * numeric_operator * float
  6. | Has_tag of string
  7. | Not of t
  8. | And of t * t
  9. | Or of t * t

AST of TSL.