Help us shape the future of Go! Take the 2026 Go Developer Survey

plugintest

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package plugintest provides the public backend conformance suite for Ridu plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, fixture Fixture)

Run executes the stable plugin-author conformance suite. Plugin packages should call it from an external-package test so import cycles and accidental reliance on private framework code are caught.

Types

type CompatibilityCase

type CompatibilityCase struct {
	RiduVersion string
	Compatible  bool
}

CompatibilityCase is one expected descriptor result in a plugin's cross-release test matrix.

type Fixture

type Fixture struct {
	Plugin ridu.Plugin
	Fields field.Fields
	// ValidData and InvalidData opt into runtime storage, local API, REST, and
	// validator conformance. InvalidData must be rejected as validation.
	ValidData   store.Values
	InvalidData store.Values
	// Compatibility records the Ridu releases the plugin author promises to
	// test. Published plugin packages should retain old rows as they release.
	Compatibility []CompatibilityCase
}

Fixture describes the smallest real application surface needed to exercise a compiled plugin's manifest and generation contracts.

Jump to

Keyboard shortcuts

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