rules

package
v0.0.0-...-ecc8568 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package rules provides methods to evaluate test name clustering rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator func(testName string) (like string, ok bool)

Evaluator evaluates a test name clustering rule on a test name, returning whether the rule matches and if so, the LIKE expression that defines the cluster.

func Compile

Compile produces a RuleEvaluator that can quickly evaluate whether a given test name matches the given test name clustering rule, and if so, return the test name LIKE expression that defines the cluster.

As Compiling rules is slow, the result should be cached.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL