fixtures

package
v0.59.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package fixtures provides realistic test data generation for benchmarks and tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LargeFromJSONL

func LargeFromJSONL(ctx context.Context, store storage.Storage, tempDir string) error

LargeFromJSONL creates a 10K issue database by exporting to JSONL and reimporting

func LargeSQLite

func LargeSQLite(ctx context.Context, store storage.Storage) error

LargeSQLite creates a 10K issue database with realistic patterns

func XLargeFromJSONL

func XLargeFromJSONL(ctx context.Context, store storage.Storage, tempDir string) error

XLargeFromJSONL creates a 20K issue database by exporting to JSONL and reimporting

func XLargeSQLite

func XLargeSQLite(ctx context.Context, store storage.Storage) error

XLargeSQLite creates a 20K issue database with realistic patterns

Types

type DataConfig

type DataConfig struct {
	TotalIssues       int     // total number of issues to generate
	EpicRatio         float64 // percentage of issues that are epics (e.g., 0.1 for 10%)
	FeatureRatio      float64 // percentage of issues that are features (e.g., 0.3 for 30%)
	OpenRatio         float64 // percentage of issues that are open (e.g., 0.5 for 50%)
	CrossLinkRatio    float64 // percentage of tasks with cross-epic blocking dependencies (e.g., 0.2 for 20%)
	MaxEpicAgeDays    int     // maximum age in days for epics (e.g., 180)
	MaxFeatureAgeDays int     // maximum age in days for features (e.g., 150)
	MaxTaskAgeDays    int     // maximum age in days for tasks (e.g., 120)
	MaxClosedAgeDays  int     // maximum days since closure (e.g., 30)
	RandSeed          int64   // random seed for reproducibility
}

DataConfig controls the distribution and characteristics of generated test data

func DefaultLargeConfig

func DefaultLargeConfig() DataConfig

DefaultLargeConfig returns configuration for 10K issue dataset

func DefaultXLargeConfig

func DefaultXLargeConfig() DataConfig

DefaultXLargeConfig returns configuration for 20K issue dataset

Jump to

Keyboard shortcuts

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