shieldtest

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package shieldtest builds the store and context that engine, admin and extension tests share: a migrated in-memory SQLite store and a context carrying a tenant and an app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ctx

func Ctx(tenant, app string) context.Context

Ctx returns a background context carrying tenant and app.

func Store

func Store(t testing.TB) *sqlite.Store

Store opens a migrated SQLite store in memory and closes it when t ends.

Types

This section is empty.

Jump to

Keyboard shortcuts

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