testutil

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const EFISystemPartitionGUID = "C12A7328-F81F-11D2-BA4B-00A0C93EC93B"

EFISystemPartitionGUID is the GUID for EFI System Partition.

Variables

This section is empty.

Functions

func CreateMinimalPEFile

func CreateMinimalPEFile(path string, sections map[string][]byte) error

CreateMinimalPEFile creates a PE file with given sections. This is a helper for testing - creates valid PE structure.

func CreateTestISOImage

func CreateTestISOImage(path string, files map[string][]byte) error

CreateTestISOImage creates an ISO image with the provided files. Files map is path -> content.

func CreateTestRAWImage

func CreateTestRAWImage(path string, sizeMB int64, files map[string][]byte) error

CreateTestRAWImage creates a RAW disk image with GPT partition table and EFI partition. The EFI partition contains the provided files map (path -> content).

func CreateTestUKIFile

func CreateTestUKIFile(path, cmdline, kernel, initrd string) error

CreateTestUKIFile creates a minimal PE file with .linux, .initrd, .cmdline sections for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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