fakematlab

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const OutputFileEnvVar = "FAKE_MATLAB_OUTPUT_FILE"

Variables

This section is empty.

Functions

func Create

func Create(t *testing.T) (string, string)

Create creates a fake MATLAB executable in a temp directory Returns the directory containing the executable and the full path to the executable

Types

type Installation added in v0.7.0

type Installation struct {
	Root           string // The MATLAB root directory (e.g., tempdir)
	PathEntry      string // The directory to add to PATH (root/bin)
	OutputFilePath string // Path where the fake writes its startup info as JSON
}

Installation holds the paths for a fake MATLAB installation.

func CreateExecutable added in v0.7.0

func CreateExecutable(t *testing.T) Installation

CreateExecutable compiles the fake MATLAB source and sets up a full installation layout.

func (Installation) ReadStartupInfo added in v0.7.0

func (i Installation) ReadStartupInfo() (StartupInfo, error)

ReadStartupInfo reads and parses the startup info written by the fake MATLAB executable.

type StartupInfo added in v0.7.0

type StartupInfo struct {
	WorkingDir string   `json:"working_dir"`
	Args       []string `json:"args"`
}

StartupInfo is the JSON structure written by the fake MATLAB executable. It captures the process working directory and all command-line arguments.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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