crontest

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package crontest opens the cron store on pgmem, CSF's in-process substitute for PostgreSQL, with CSF's real schema applied: the store a spec grants when it needs cron state without a database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenStore

func OpenStore(reporter IReporter) *pgmem.PostgresStoreOnPgmem[*cron.Store]

OpenStore opens a store for one spec and closes it when the spec ends; a store that cannot be opened fails the spec.

Types

type IReporter

type IReporter interface {
	Helper()
	Fatalf(format string, arguments ...any)
	Cleanup(cleanup func())
}

IReporter is the part of a spec runner the store is opened against: GinkgoT() and *testing.T both satisfy it.

Jump to

Keyboard shortcuts

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