templates

package
v0.1.83 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package templates implements the "templates" tester. It renders a module's chart with user-supplied values and compares the result against committed golden snapshots, in the spirit of deckhouse's testing/helm harness.

Index

Constants

View Source
const (
	// ID is the tester identifier surfaced in results.
	ID = "templates"
	// TestsDirName is the per-module directory that holds template test cases.
	TestsDirName = "templates-tests"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tester

type Tester struct {
	ErrorList *pkgerrors.TestErrorsList
	// contains filtered or unexported fields
}

func New

func New(errorList *pkgerrors.TestErrorsList, update bool) *Tester

New creates a templates tester. When update is true, mismatching snapshots are rewritten on disk instead of being reported as failures.

func (*Tester) Desc

func (t *Tester) Desc() string

func (*Tester) Name

func (t *Tester) Name() string

func (*Tester) Run

func (t *Tester) Run(modulePath string) bool

Run executes the templates tester against the given module path. Returns true if the tester was applicable (i.e. the module ships test cases).

Jump to

Keyboard shortcuts

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