testutil

package
v0.0.0-...-c353a36 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertHeadlessAtoms

func AssertHeadlessAtoms(t *testing.T, html string)

func MustContain

func MustContain(t *testing.T, html, want string)

func MustNotContain

func MustNotContain(t *testing.T, html, notWant string)

func Render

func Render(t *testing.T, c interface {
	Render(context.Context, io.Writer) error
}) string

func RenderChild

func RenderChild(t *testing.T, root, child templ.Component) string

RenderChild wires a single child templ.Component onto ctx before rendering root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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