compiler

package
v1.0.1050-8d28a3e Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package compiler provides a convenient mechanism for building and running a service binary as part of an acceptance test suite.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

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

func New

func New() *Compiler

func (*Compiler) Cleanup

func (c *Compiler) Cleanup()

func (*Compiler) Compile

func (c *Compiler) Compile(ctx context.Context, name, target string, source string) (string, error)

Compile a binary for testing. target is the path to the main package.

type Parallel

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

func NewParallel

func NewParallel(parallelism int) *Parallel

func (*Parallel) Add

func (t *Parallel) Add(work Work)

func (*Parallel) Cleanup

func (t *Parallel) Cleanup()

func (*Parallel) Run

func (t *Parallel) Run(ctx context.Context) error

type Work

type Work struct {
	Result *string
	Name   string
	Target string
	Source string
}

Directories

Path Synopsis
internal
cmd

Jump to

Keyboard shortcuts

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