testchangeset

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeSetAsserter

type ChangeSetAsserter interface {
	Assert(t *testing.T, cs *history.ChangeSet)
}

ChangeSetAsserter is an interface to assert if the given changeset with rules of implementations.

type HasAlias added in v0.50.0

type HasAlias struct {
	Source      string
	Destination string
}

func (*HasAlias) Assert added in v0.50.0

func (h *HasAlias) Assert(t *testing.T, cs *history.ChangeSet)

Assert implements ChangeSetAsserter.

type HasEvent

type HasEvent struct {
	ResourcePath string
}

func (*HasEvent) Assert

func (h *HasEvent) Assert(t *testing.T, cs *history.ChangeSet)

Assert implements ChangeSetAsserter.

type HasLogSummary

type HasLogSummary struct {
	WantLogSummary string
}

func (*HasLogSummary) Assert

func (h *HasLogSummary) Assert(t *testing.T, cs *history.ChangeSet)

Assert implements ChangeSetAsserter.

type HasNoRevision added in v0.50.0

type HasNoRevision struct {
	ResourcePath string
}

func (*HasNoRevision) Assert added in v0.50.0

func (r *HasNoRevision) Assert(t *testing.T, cs *history.ChangeSet)

Assert implements ChangeSetAsserter.

type HasRevision

type HasRevision struct {
	ResourcePath string
	WantRevision history.StagingResourceRevision
	CmpOpts      []cmp.Option
}

func (*HasRevision) Assert

func (r *HasRevision) Assert(t *testing.T, cs *history.ChangeSet)

Assert implements ChangeSetAsserter.

type MatchResourcePathSet

type MatchResourcePathSet struct {
	WantResourcePaths []string
}

func (*MatchResourcePathSet) Assert

func (r *MatchResourcePathSet) Assert(t *testing.T, cs *history.ChangeSet)

type MatchRevisionCount added in v0.50.0

type MatchRevisionCount struct {
	ResourcePath string
	WantCount    int
}

func (*MatchRevisionCount) Assert added in v0.50.0

func (c *MatchRevisionCount) Assert(t *testing.T, cs *history.ChangeSet)

Jump to

Keyboard shortcuts

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