authztest

package
v1.0.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package authztest holds shared helpers for authz property and integration tests. See docs/design/api/authz-testing.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateModel

func GenerateModel(data []byte) authz.Model

GenerateModel builds a schema 1.1 authz.Model from entropy for L2 property and fuzz tests. Named recipe tables drive rewrites/refs; mixed mode injects occasional invalid constructs for rejection coverage.

func GenerateValidModel

func GenerateValidModel(data []byte) authz.Model

GenerateValidModel builds only profile-valid models for L3 persist tests.

func Seed

func Seed(i int) []byte

Seed returns deterministic entropy for GenerateModel from an integer index.

Types

This section is empty.

Jump to

Keyboard shortcuts

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