cmdconfig

package
v0.10.2 Latest Latest
Warning

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

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

Documentation

Overview

Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var IgvmMeasureOptions = []string{"measure", "-b"}

Functions

This section is empty.

Types

type CmdConfig

type CmdConfig struct {
	// contains filtered or unexported fields
}

func NewCmdConfig

func NewCmdConfig(binPath string, options []string, stderr io.Writer) (*CmdConfig, error)

func (*CmdConfig) Run

func (m *CmdConfig) Run(pathToFile string) ([]byte, error)

func (*CmdConfig) SetExecCommand

func (m *CmdConfig) SetExecCommand(cmdFunc func(name string, arg ...string) *exec.Cmd)

SetExecCommand allows tests to inject a mock execCommand function.

func (*CmdConfig) Stop

func (m *CmdConfig) Stop() error

type MeasurementProvider

type MeasurementProvider interface {
	Run(binaryPath string) ([]byte, error)
	Stop() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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