validationassert

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package validationassert provides shared test helpers for factory validation target assertions. Import it only from test code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasDomainTargetCode

func HasDomainTargetCode(t *testing.T, targets []factoryvalidation.Target, code string)

HasDomainTargetCode asserts that targets contains a validation target with the given code.

func HasDomainTargetSubject

func HasDomainTargetSubject(t *testing.T, targets []factoryvalidation.Target, want factoryvalidation.Subject)

HasDomainTargetSubject asserts that targets contains a validation target whose subject equals want.

func HasTarget

HasTarget asserts that targets contains a validation target matching code, subject type, subject id, and location. want is included in the failure message.

func HasTargetCode

func HasTargetCode(t *testing.T, targets []factoryapi.FactoryValidationTarget, code string, want ...string)

HasTargetCode asserts that targets contains a validation target with the given code. When want is non-empty, the failure message uses the service topology label form; otherwise it reports the missing code.

Types

This section is empty.

Jump to

Keyboard shortcuts

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