testutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupRedis

func CleanupRedis(client *redis.Client)

CleanupRedis closes the Redis client connection

func SetupContext

func SetupContext() context.Context

SetupContext returns a background context for testing

func SetupMemoryStore

func SetupMemoryStore() *knowledge.MemoryStore

SetupMemoryStore creates a new memory store for testing

func SetupRedisStore

func SetupRedisStore(t *testing.T) *knowledge.RedisStore

SetupRedisStore creates a Redis store for testing, skips if Redis unavailable

func SkipIfNoRedis

func SkipIfNoRedis(t *testing.T)

SkipIfNoRedis skips the test if Redis is not available

func SkipIfShort

func SkipIfShort(t *testing.T, message string)

SkipIfShort skips the test if running in short mode

Types

This section is empty.

Jump to

Keyboard shortcuts

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