mockfw

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFW

type MockFW struct {
	Muts mutations.Mutations
}

MockFW is a framework that is only for use when testing methods that require a fwlib.Framework as a parameter. It allows you to set the mutations that are returned and has a Meta value, but otherwise returns nil or false in all cases.

func (*MockFW) LoadResults

func (m *MockFW) LoadResults() error

func (*MockFW) Meta

func (m *MockFW) Meta() *fwlib.Meta

func (*MockFW) Mutations

func (m *MockFW) Mutations() mutations.Mutations

func (*MockFW) ReadLines

func (m *MockFW) ReadLines(_ string) ([]string, error)

func (*MockFW) TransformResults

func (m *MockFW) TransformResults() error

func (*MockFW) Yaml

func (m *MockFW) Yaml() fwlib.FWConfig

type YamlWrapper

type YamlWrapper struct{}

func (*YamlWrapper) Init

func (y *YamlWrapper) Init() interface{}

func (*YamlWrapper) Load

func (y *YamlWrapper) Load(_ []byte) (bool, error)

Jump to

Keyboard shortcuts

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