policytest

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package policytest provides reusable contract checks for contrib policy engine adapters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEngineContract

func AssertEngineContract(t *testing.T, allow, deny, malformed EngineFactory)

AssertEngineContract verifies provider-neutral policy engine behavior shared by adapters such as OPA and Cedar.

Types

type EngineFactory

type EngineFactory func(t *testing.T) ports.PolicyEngine

EngineFactory constructs a policy engine for a contract scenario.

Jump to

Keyboard shortcuts

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