filtertest_test

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunFilter

func RunFilter(t *testing.T, input string, f kio.Filter) string

RunFilter runs filter and panic if there is error

func RunFilterE added in v0.6.0

func RunFilterE(t *testing.T, input string, f kio.Filter) (string, error)

RunFilterE runs filter and return error if there is

Types

type MutationTrackerStub added in v0.11.0

type MutationTrackerStub struct {
	// contains filtered or unexported fields
}

MutationTrackerStub to help stub a mutation tracker for kio.TrackableFilter

func (*MutationTrackerStub) MutationTracker added in v0.11.0

func (mts *MutationTrackerStub) MutationTracker(key, value, tag string, node *yaml.RNode)

func (*MutationTrackerStub) Reset added in v0.11.0

func (mts *MutationTrackerStub) Reset()

func (*MutationTrackerStub) SetValueArgs added in v0.11.0

func (mts *MutationTrackerStub) SetValueArgs() []SetValueArg

type SetValueArg added in v0.11.0

type SetValueArg struct {
	Key      string
	Value    string
	Tag      string
	NodePath []string
}

Jump to

Keyboard shortcuts

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