testutils

package
v1.20.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more 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