Header menu logo testify

TestifyHintPack Module

Functions and values

Function or value Description

TestifyHintPack.create name rules

Full Usage: TestifyHintPack.create name rules

Parameters:
    name : string - The stable pack name.
    rules : TestifyHintRule list - The rules that should be applied when the pack is enabled.

Returns: TestifyHintPack A hint pack that can be passed to TestifyConfig.withHintPacks.

Creates a named hint pack from an ordered list of rules.

name : string

The stable pack name.

rules : TestifyHintRule list

The rules that should be applied when the pack is enabled.

Returns: TestifyHintPack

A hint pack that can be passed to TestifyConfig.withHintPacks.

Example

 let coursePack =
     TestifyHintPack.create
         "course"
         [ TestifyHintRule.onFieldRegexPattern
               "Course.TrailingSpace"
               HintTextField.ActualValue
               @"\s+$"
               (fun _ -> "The value appears to end with trailing whitespace.") ]
val coursePack: obj

Type something to start searching.