package test

import "helm.sh/helm/v3/internal/test"

Index

Functions

func AssertGoldenFile

func AssertGoldenFile(t TestingT, actualFileName string, expectedFilename string)

AssertGoldenFile asserts that the content of the actual file matches the contents of the expected file

func AssertGoldenString

func AssertGoldenString(t TestingT, actual, filename string)

AssertGoldenString asserts that the given string matches the contents of the given file.

Types

type HelperT

type HelperT interface {
	Helper()
}

HelperT describes a test with a helper function

type TestingT

type TestingT interface {
	Fatal(...interface{})
	Fatalf(string, ...interface{})
	HelperT
}

TestingT describes a testing object compatible with the critical functions from the testing.T type

Source Files

test.go

Directories

PathSynopsis
internal/test/ensure
Version
v3.17.3 (latest)
Published
Apr 9, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
1 month ago

Tools for package owners.