compiler

package
v1.0.1904-f7dc29d Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package compiler helps efficiently compile and cleanup your services in acceptance tests.

At CircleCI we aim to acceptance test whole compiled binaries.

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.

func (*Compiler) Dir

func (c *Compiler) Dir() string

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) Dir

func (t *Parallel) Dir() string

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