types

package
v0.0.0-...-5ea7d2a Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 2 Imported by: 0

README

types

import "github.com/eclipse-symphony/symphony/packages/testutils/types"

Index

type Condition

Condition is a way to define a condition for a resource. It is used to verify whether a resource is in the expected state. It's meant to be used in conjunction with an Expectation. The Expectation is responsible for retrieving the resource and passing it to the Condition to verify that the resource is as expected.

type Condition interface {

    // IsSatisfiedBy returns `nil` if the condition is satisfied by the given resource.
    IsSatisfiedBy(ctx context.Context, resource interface{}) error
    // contains filtered or unexported methods
}

type Expectation

Expectation is a way to define expectations for a resource. It is used to verify whether a resource is in the expected state. It's responsible for retrieving the resource and verifying that the resource is as expected.

type Expectation interface {

    // Verify runs the expactation. It returns an error if the expectation is not met.
    Verify(ctx context.Context) error
    // contains filtered or unexported methods
}

type GomegaEventuallySubject

type GomegaEventuallySubject interface {
    GomegaMatchable
    AsGomegaSubject() func(context.Context) (interface{}, error)
}

type GomegaMatchable

type GomegaMatchable interface {
    ToGomegaMatcher() types.GomegaMatcher
}

Generated by gomarkdoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition interface {

	// IsSatisfiedBy returns `nil` if the condition is satisfied by the given resource.
	IsSatisfiedBy(ctx context.Context, resource interface{}) error
	// contains filtered or unexported methods
}

Condition is a way to define a condition for a resource. It is used to verify whether a resource is in the expected state. It's meant to be used in conjunction with an Expectation. The Expectation is responsible for retrieving the resource and passing it to the Condition to verify that the resource is as expected.

type Expectation

type Expectation interface {

	// Verify runs the expactation. It returns an error if the expectation is not met.
	Verify(ctx context.Context) error
	// contains filtered or unexported methods
}

Expectation is a way to define expectations for a resource. It is used to verify whether a resource is in the expected state. It's responsible for retrieving the resource and verifying that the resource is as expected.

type GomegaEventuallySubject

type GomegaEventuallySubject interface {
	GomegaMatchable
	AsGomegaSubject() func(context.Context) (interface{}, error)
}

type GomegaMatchable

type GomegaMatchable interface {
	ToGomegaMatcher() types.GomegaMatcher
}

Jump to

Keyboard shortcuts

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