venom: github.com/ovh/venom/executors/redis Index | Files

package redis

import "github.com/ovh/venom/executors/redis"

Index

Package Files

executor.go

Constants

const Name = "redis"

Name of executor

func New Uses

func New() venom.Executor

New returns a new Executor

type Command Uses

type Command struct {
    Name     string        `json:"name,omitempty" yaml:"name,omitempty"`
    Args     []interface{} `json:"args,omitempty" yaml:"args,omitempty"`
    Response interface{}   `json:"response,omitempty" yaml:"response,omitempty"`
}

Command represents a redis command and the result

type Executor Uses

type Executor struct {
    Commands []string `json:"commands,omitempty" yaml:"commands,omitempty"`
    FilePath string   `json:"path,omitempty" yaml:"path,omitempty" mapstructure:"path"`
}

Executor represents the redis executor

func (Executor) GetDefaultAssertions Uses

func (e Executor) GetDefaultAssertions() venom.StepAssertions

GetDefaultAssertions return the default assertions of the executor.

func (Executor) Run Uses

func (Executor) Run(testCaseContext venom.TestCaseContext, l venom.Logger, step venom.TestStep, workdir string) (venom.ExecutorResult, error)

Run execute TestStep

func (Executor) ZeroValueResult Uses

func (Executor) ZeroValueResult() venom.ExecutorResult

ZeroValueResult return an empty implemtation of this executor result

type Result Uses

type Result struct {
    Executor Executor  `json:"executor,omitempty" yaml:"executor,omitempty"`
    Commands []Command `json:"commands,omitempty" yaml:"commands,omitempty"`
}

Result represents a step result.

Package redis imports 10 packages (graph) and is imported by 4 packages. Updated 2018-11-10. Refresh now. Tools for package owners.