utils

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCommandOutput added in v1.2.4

func HandleCommandOutput(fn func() (string, error)) func()

HandleCommandOutput wraps a function that returns (string, error) into a no-arg function that prints the output to stdout or stderr depending on whether an error occurred.

func LoadGolden

func LoadGolden(t *testing.T, filename string) string

func ValidateAbilityArgs

func ValidateAbilityArgs(args []string) error

ValidateAbilityArgs validates the command line arguments

func ValidateMoveArgs

func ValidateMoveArgs(args []string) error

ValidateMoveArgs validates the command line arguments

func ValidateNaturesArgs

func ValidateNaturesArgs(args []string) error

ValidateNaturesArgs validates the command line arguments

func ValidatePokemonArgs

func ValidatePokemonArgs(args []string) error

ValidatePokemonArgs validates the command line arguments

func ValidateSearchArgs

func ValidateSearchArgs(args []string) error

ValidateSearchArgs validates the command line arguments

func ValidateTypesArgs

func ValidateTypesArgs(args []string) error

ValidateTypesArgs validates the command line arguments

Types

This section is empty.

Jump to

Keyboard shortcuts

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