assert

package
v0.0.0-...-6f43059 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAutomountLocations

func AssertAutomountLocations(t *testing.T, expected *[]string, current *[]string)

AssertAutomountLocations asserts the current slice for automount locations with the slice of expected ones. t represents the current test. expected represents the expected slice of strings or nil. current represents the resulting slice of strings or nil.

func AssertCaCerts

func AssertCaCerts(t *testing.T, expected []public.Certificate, current []public.Certificate)

AssertCaCerts asserts the current slice of public.Certificate match the slice of expected ones. t represents the current test. expected represents the expected slice of public.Certificate values. current represents the resulting slice of public.Certificate values.

func AssertDomain

func AssertDomain(t *testing.T, expected *public.Domain, current *public.Domain)

AssertDomain asserts that the expected domain with the current domain value without consider the domain id field and without consider the gorm.Model data. t the current test in progress. expected is the expected domain. current is the current resulting domain that should match with the expectation.

func AssertDomainIpa

func AssertDomainIpa(t *testing.T, expected *public.DomainIpa, current *public.DomainIpa)

AssertDomainIpa asserts the current domain ipa data match the expectation without consider the gorm.Model data. t represents the current test. expected represents the expected domain ipa values. current represents the resulting domain ipa values.

func AssertLocations

func AssertLocations(t *testing.T, expected []public.Location, current []public.Location)

AssertLocations asserts the current slice of Locations match the slice of expected ones. t represents the current test. expected represents the expected slice of Location values. current represents the resulting slice of Location values.

func AssertServers

func AssertServers(t *testing.T, expected []public.DomainIpaServer, current []public.DomainIpaServer)

AssertServers asserts the current slice of public.DomainIpaServer match the slice of expected ones. t represents the current test. expected represents the expected slice of public.DomainIpaServer values. current represents the resulting slice of public.DomainIpaServer values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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