delitmus

package
v0.0.0-...-1dd1f65 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package delitmus lifts the c4f delitmusifier into a backend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delitmus

type Delitmus struct {
	// BaseRunner is the base configuration of the c4f runner, which is copied and overridden for each lifting.
	BaseRunner c4f.Runner
}

Delitmus partially implements the backend specification by delegating to C4's delitmusifier.

The delitmus backend can't actually produce standalone C code, and, at time of writing, there is no way to get the tester to compile C code without running it. Instead, its main purpose is to serve as the target of a coverage run.

func (Delitmus) Class

func (d Delitmus) Class() backend2.Class

Class gets the 'class' of the delitmusifier (which is just the delitmusifier).

func (Delitmus) Instantiate

func (d Delitmus) Instantiate(_ backend2.Spec) backend2.Backend

Instantiate 'instantiates' the delitmusifier; in fact, there isn't anything to instantiate.

func (Delitmus) Lift

Lift delitmusifies the litmus file specified in j, using errw for standard output. It outputs a delitmusified C file and auxiliary file to j's output directory, and produces a recipe that suggests compiling that C file as an object. At time of writing, there is no way to specify how to delitmusify the file.

func (Delitmus) Metadata

func (Delitmus) Metadata() backend2.Metadata

Metadata gets the metadata for the delitmusifier.

func (Delitmus) ParseObs

func (d Delitmus) ParseObs(_ context.Context, _ io.Reader, _ *obs.Obs) error

ParseObs errors, for we cannot parse the observations of a delitmus run.

func (Delitmus) Probe

func (Delitmus) Probe(ctx context.Context, sr service.Runner, style id.ID) ([]backend2.NamedSpec, error)

Probe probes to see if there is a c4f installation we can use for delitmusifying.

Jump to

Keyboard shortcuts

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