test_utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	To      = "tooltracker@a.example.com"
	Domain1 = "a.example.com"
	Domain2 = "b.example.com"
	Domain3 = "c.example.com"
	Tool1   = "tool1"
	Tool2   = "tool2"
)
View Source
const (
	Borrow        = "Borrowed "
	Alias         = "Alias "
	PlainTemplate = `From: %s
To: %s
Subject: %s

%s
`
)
View Source
const TestPrivateKeyPEM = `` /* 887-byte string literal not displayed */

Variables

View Source
var (
	User1  = fmt.Sprintf("user1@%s", Domain1)
	User2  = fmt.Sprintf("user2@%s", Domain1)
	User3  = fmt.Sprintf("user3@%s", Domain2)
	User4  = fmt.Sprintf("user4@%s", Domain2)
	User5  = fmt.Sprintf("user5@%s", Domain3)
	FromRe = regexp.MustCompile(fmt.Sprintf(".*@%s", regexp.QuoteMeta(Domain1)))
)

Functions

func Assert

func Assert(t *testing.T, err error)

func AssertSlicesEqual

func AssertSlicesEqual[T fmt.Stringer](t *testing.T, expected []T, got []T)

func AssertStringSlicesEqual

func AssertStringSlicesEqual(t *testing.T, expected []string, got []string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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