envstest

package
v0.27.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetEdition

func SetEdition(t *testing.T, edition envs.Edition)

SetEdition swaps envs.DefaultBackend with a simple map backend that returns the given edition for SHELLHUB_EDITION, and restores the original on cleanup.

func SetRawEdition

func SetRawEdition(t *testing.T, raw string)

SetRawEdition is like SetEdition but accepts an arbitrary string, including invalid or un-normalized values. Use it to test CurrentEdition's trim/lowercase/validation logic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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