testutil

package
v1.0.2-beta Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Namespace string = "world"

Variables

This section is empty.

Functions

func DumpRedis

func DumpRedis(t *testing.T, r *miniredis.Miniredis, label any)

DumpRedis prints the contents of each key/value in the given miniredis instance. For list keys, each item is printed to a separate line.

func GetRedisStorage

func GetRedisStorage(t *testing.T) storage.Storage

func InitWorldWithRedis

func InitWorldWithRedis(t *testing.T, s *miniredis.Miniredis) *ecs.World

InitWorldWithRedis sets up an ecs.World using the given redis DB. ecs.NewECSWorldForTest is not used because the test will re-use the incoming miniredis instance to initialize multiple worlds.

func UniqueSignature

func UniqueSignature(t *testing.T) *sign.Transaction

Types

This section is empty.

Jump to

Keyboard shortcuts

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