testconfig

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(t testing.TB, opts Options) model.Config

func ConfigTx

func ConfigTx(t testing.TB, opts Options, cb func(model.Config) error)

func ConfigTxRollback

func ConfigTxRollback(t testing.TB, opts Options, cb func(model.Config))

Types

type Options

type Options struct {
	WhenUtc        string
	Storage        string
	RTStorage      string
	RTJsons        []RTJsonFile
	FGAEndpoint    string
	FGAModelFile   string
	FGAModelTuples []authz.TupleKey
	// AllowAll installs an AllowAllChecker. Required for tests that exercise
	// mutations. Ignored when FGAEndpoint is set.
	AllowAll bool
	// UseGeohashFilter enables the secondary stop-geohash filter on bbox/within/near
	// queries. Requires the test database to have tl_feed_version_geohashes populated.
	UseGeohashFilter bool
}

type RTJsonFile

type RTJsonFile struct {
	Feed  string
	Ftype string
	Fname string
}

func DefaultRTJson

func DefaultRTJson() []RTJsonFile

Jump to

Keyboard shortcuts

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