ruletest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 21 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ruletest orchestrates the execution of rule tests.

Index

Constants

This section is empty.

Variables

View Source
var ErrTestFailed = errors.New("rule test(s) failed")

Functions

func RunAllTests

func RunAllTests(opts Options, testsDir string) error

func RunTest

func RunTest(opts Options, testPath string) error

Types

type Options

type Options struct {
	RulesDir     string
	FunctionsDir string
	ScopesDir    string
	PrintAlert   int // 0: none, 1: compact, 2: indented
	GeoDB        string
	Satisfy      []string // requirements to treat as satisfied
	Debug        bool
	Version      string
}

Options configures a rule test run.

Jump to

Keyboard shortcuts

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