testchangeset

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 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 LogChangeSetAsserter added in v0.56.0

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

LogChangeSetAsserter provides fluent, chainable assertions for LogChangeSet.

func AssertLog added in v0.56.0

AssertLog starts a fluent assertion chain for the given LogChangeSet.

func (*LogChangeSetAsserter) HasLogType added in v0.56.0

func (a *LogChangeSetAsserter) HasLogType(want *pb.LogType) *LogChangeSetAsserter

HasLogType asserts that the LogChangeSet has the expected log type.

func (*LogChangeSetAsserter) HasSeverity added in v0.56.0

func (a *LogChangeSetAsserter) HasSeverity(want *pb.Severity) *LogChangeSetAsserter

HasSeverity asserts that the LogChangeSet has the expected severity type.

func (*LogChangeSetAsserter) HasSummary added in v0.56.0

func (a *LogChangeSetAsserter) HasSummary(wantSummary string) *LogChangeSetAsserter

HasSummary asserts that the LogChangeSet has the expected summary.

func (*LogChangeSetAsserter) HasTimestamp added in v0.56.0

func (a *LogChangeSetAsserter) HasTimestamp(want time.Time) *LogChangeSetAsserter

HasTimestamp asserts that the LogChangeSet has the expected timestamp.

type TimelineChangeSetAsserter added in v0.56.0

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

TimelineChangeSetAsserter provides fluent, chainable assertions for TimelineChangeSet.

func AssertTimeline added in v0.56.0

AssertTimeline starts a fluent assertion chain for the given TimelineChangeSet.

func (*TimelineChangeSetAsserter) HasAlias added in v0.56.0

func (a *TimelineChangeSetAsserter) HasAlias(wantAliasPath, wantTargetPath *khifilev6.TimelinePath) *TimelineChangeSetAsserter

HasAlias asserts that an alias mapping from the alias path to the target path was staged.

func (*TimelineChangeSetAsserter) HasEvent added in v0.56.0

HasEvent asserts that an event was staged on the expected path.

func (*TimelineChangeSetAsserter) HasEventCount added in v0.59.0

func (a *TimelineChangeSetAsserter) HasEventCount(wantCount int) *TimelineChangeSetAsserter

HasEventCount asserts that the total number of staged events matches the expected count.

func (*TimelineChangeSetAsserter) HasNoAlias added in v0.56.0

HasNoAlias asserts that no alias was staged for the given alias path.

func (*TimelineChangeSetAsserter) HasNoEvent added in v0.56.0

HasNoEvent asserts that no event was staged on the path.

func (*TimelineChangeSetAsserter) HasNoRevision added in v0.56.0

HasNoRevision asserts that no revision was staged on the path.

func (*TimelineChangeSetAsserter) HasRevision added in v0.56.0

func (a *TimelineChangeSetAsserter) HasRevision(wantPath *khifilev6.TimelinePath, wantRevision *khifilev6.StagingRevision, cmpOpts ...cmp.Option) *TimelineChangeSetAsserter

HasRevision asserts that a matching StagingRevision was staged on the expected path.

Jump to

Keyboard shortcuts

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