Documentation
¶
Overview ¶
Package fixtures provides realistic test data generation for benchmarks and tests.
Index ¶
- func LargeFromJSONL(ctx context.Context, store storage.Storage, tempDir string) error
- func LargeSQLite(ctx context.Context, store storage.Storage) error
- func XLargeFromJSONL(ctx context.Context, store storage.Storage, tempDir string) error
- func XLargeSQLite(ctx context.Context, store storage.Storage) error
- type DataConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LargeFromJSONL ¶
LargeFromJSONL creates a 10K issue database by exporting to JSONL and reimporting
func LargeSQLite ¶
LargeSQLite creates a 10K issue database with realistic patterns
func XLargeFromJSONL ¶
XLargeFromJSONL creates a 20K issue database by exporting to JSONL and reimporting
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
Click to show internal directories.
Click to hide internal directories.