Documentation
¶
Index ¶
- type BenchmarkConfig
- func (c *BenchmarkConfig) ContextRoot() string
- func (c *BenchmarkConfig) FixtureDir() string
- func (c *BenchmarkConfig) LogPath() string
- func (c *BenchmarkConfig) OutputPath() string
- func (c *BenchmarkConfig) Spec() *models.BenchmarkSpec
- func (c *BenchmarkConfig) SpecDir() string
- func (c *BenchmarkConfig) TranscriptDir() string
- func (c *BenchmarkConfig) Verbose() bool
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BenchmarkConfig ¶
type BenchmarkConfig struct {
// contains filtered or unexported fields
}
BenchmarkConfig is the main configuration with functional options
func NewBenchmarkConfig ¶
func NewBenchmarkConfig(spec *models.BenchmarkSpec, opts ...Option) *BenchmarkConfig
NewBenchmarkConfig creates a new configuration with options
func (*BenchmarkConfig) ContextRoot ¶
func (c *BenchmarkConfig) ContextRoot() string
func (*BenchmarkConfig) FixtureDir ¶
func (c *BenchmarkConfig) FixtureDir() string
func (*BenchmarkConfig) LogPath ¶
func (c *BenchmarkConfig) LogPath() string
func (*BenchmarkConfig) OutputPath ¶
func (c *BenchmarkConfig) OutputPath() string
func (*BenchmarkConfig) SpecDir ¶
func (c *BenchmarkConfig) SpecDir() string
func (*BenchmarkConfig) TranscriptDir ¶
func (c *BenchmarkConfig) TranscriptDir() string
func (*BenchmarkConfig) Verbose ¶
func (c *BenchmarkConfig) Verbose() bool
type Option ¶
type Option func(*BenchmarkConfig)
Option is a functional option for BenchmarkConfig
func WithContextRoot ¶
WithContextRoot is an alias for WithFixtureDir for compatibility
func WithFixtureDir ¶
WithFixtureDir sets the fixture directory (for loading resource files)
func WithOutputPath ¶
WithOutputPath sets the output file path
func WithSpecDir ¶
WithSpecDir sets the spec directory (for resolving test patterns)
func WithTranscriptDir ¶
WithTranscriptDir sets the directory for per-task transcript files
Click to show internal directories.
Click to hide internal directories.