...

Package mock

import "github.com/chaos-mesh/chaos-mesh/pkg/mock"
Overview
Index

Overview ▾

func On

func On(fpname string) interface{}

On inject a failpoint

func Reset

func Reset(fpname string) error

Reset disable failpoint and remove mock value

type Finalizer

Finalizer represent the function that clean a mock point

type Finalizer func() error

func With

func With(fpname string, value interface{}) Finalizer

With enable failpoint and provide a value