Documentation
¶
Index ¶
Constants ¶
View Source
const OutputFileEnvVar = "FAKE_MATLAB_OUTPUT_FILE"
Variables ¶
This section is empty.
Functions ¶
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
StartupInfo is the JSON structure written by the fake MATLAB executable. It captures the process working directory and all command-line arguments.
Click to show internal directories.
Click to hide internal directories.