conformance

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package conformance provides a test suite that verifies a murli-enabled CLI binary satisfies the murli 1.0 contract. Import it in your CLI's test suite to get continuous contract compliance checks.

Usage:

func TestConformance(t *testing.T) {
    suite := conformance.NewSuite("/path/to/your/binary")
    suite.Check(t)
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Suite

type Suite struct {
	// BinaryPath is the path to the CLI binary to test.
	BinaryPath string
}

Suite runs conformance checks against a murli-enabled CLI binary.

func NewSuite

func NewSuite(binaryPath string) *Suite

NewSuite creates a conformance test suite for the binary at path.

func (*Suite) Check

func (s *Suite) Check(t *testing.T)

Check runs all generic conformance checks. Call from your TestConformance function.

func (*Suite) CheckDescribe

func (s *Suite) CheckDescribe(t *testing.T)

CheckDescribe verifies that `binary describe` returns valid JSON satisfying the murli DescribeOutput contract: schema_version, name, and capabilities are present.

Jump to

Keyboard shortcuts

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