testutils

package
v1.42.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package testutils contains files that are used in tests but not elsewhere and thus can be excluded from the final executable. Including them in a different package allows this to happen

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerOverridesEqual

func ContainerOverridesEqual(lhs, rhs apicontainer.ContainerOverrides) bool

ContainerOverridesEqual determines if two container overrides are equal

func ContainersEqual

func ContainersEqual(lhs, rhs *apicontainer.Container) bool

ContainersEqual determines if this container is equal to another container. This is not exact equality, but logical equality. TODO: use reflection along with `equal:"unordered"` annotations on slices to replace this verbose code (low priority, but would be fun)

func TasksEqual

func TasksEqual(lhs, rhs *apitask.Task) bool

TasksEqual determines if the lhs and rhs tasks are equal for the definition of having the same family, version, statuses, and equal containers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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