testhelpers

package
v0.9.8-gmcp-individual... Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package testhelpers provides utilities for testing GoMud components

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRaceForTesting

func AddRaceForTesting(race *races.Race)

AddRaceForTesting adds a race directly to the races map for testing purposes. This bypasses the normal file loading mechanism.

func CleanupTestRaces

func CleanupTestRaces()

CleanupTestRaces removes all test races from the races map. This should be called in test cleanup to avoid polluting other tests.

func InitializeTestRaces

func InitializeTestRaces()

InitializeTestRaces sets up minimal race data for testing combat and other systems that depend on race information. This should be called in test init() functions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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