pack

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0, MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package pack manages deterministic offline corpus packs and synthetic workload packs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCasesNDJSON

func ParseCasesNDJSON(data []byte) ([]model.PackCase, error)

ParseCasesNDJSON parses and validates cases.ndjson bytes.

func ValidateCase

func ValidateCase(c model.PackCase) error

ValidateCase checks structural and semantic invariants of a PackCase.

Types

type LoadedPack

type LoadedPack struct {
	Pack       model.Pack
	PackSHA256 string
	Cases      []model.PackCase
}

LoadedPack holds a validated pack manifest, its raw SHA-256, and its ordered cases.

func BindCorpus

func BindCorpus(ctx context.Context, corpusRoot, tier, outDir string) (*LoadedPack, error)

BindCorpus binds a 3leaps/structcorpus checkout at the requested tier into an offline pack.

func LoadAndValidatePack

func LoadAndValidatePack(packDir string) (*LoadedPack, error)

LoadAndValidatePack reads and verifies pack.json, cases.ndjson, and all listed input files in packDir.

func WritePack

func WritePack(outDir string, meta model.Pack, cases []model.PackCase, inputs map[string][]byte) (*LoadedPack, error)

WritePack writes inputs, cases.ndjson, and pack.json into outDir using confined root I/O.

Jump to

Keyboard shortcuts

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