tmplexec

package
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package tmplexec provides functionality for generating test cases and executing them

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssertExecutor

type AssertExecutor struct {
	Opts Opts
}

AssertExecutor implementation of IAssertExecutor

func (*AssertExecutor) Execute

func (v *AssertExecutor) Execute(organism *gen.Organism) (string, error)

Execute executes organism on assert template

type CoverageExecutor

type CoverageExecutor struct {
	Opts Opts
}

CoverageExecutor implementation of ICoverageExecutor

func (*CoverageExecutor) Execute

func (v *CoverageExecutor) Execute(organism *gen.Organism) (string, error)

Execute executes organism on assert template

type IExecutor

type IExecutor interface {
	Execute(organism *gen.Organism) (string, error)
}

IExecutor interface for executor of template

func NewAssertExecutor

func NewAssertExecutor(opts Opts) IExecutor

NewAssertExecutor creates new assert template executor the final generator which creates inputs & verifies output

func NewCoverageExecutor

func NewCoverageExecutor(opts Opts) IExecutor

NewCoverageExecutor creates new assert template executor this is the first step to measure coverage

func NewValueExecutor

func NewValueExecutor(opts Opts) IExecutor

NewValueExecutor creates new value template executor this is the second step to read values to assert

type Opts

type Opts struct {
	Dir      string
	Override bool
}

Opts opts for template generation and execution

type ValueExecutor

type ValueExecutor struct {
	Opts Opts
}

ValueExecutor implementation of IValueExecutor

func (*ValueExecutor) Execute

func (v *ValueExecutor) Execute(organism *gen.Organism) (string, error)

Execute executes organism on value template

Jump to

Keyboard shortcuts

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