testbase

package
v0.0.0-...-a532a67 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteArrayEq

func ByteArrayEq(a, b []byte) bool

ByteArrayEq compare two byte array, return true if equels

func ComparePublicEquals

func ComparePublicEquals(obj1 interface{}, obj2 interface{}) (bool, error)

ComparePublicEquals compare two public methods od object, return true if equels

func InjectEnv

func InjectEnv(name string, dest *string) (err error)

func ReadURLLoop

func ReadURLLoop(url string, count int, dur time.Duration) (respBody string, err error)

ReadURLLoop read url in loop. It is used for integration tests.

Types

type DockerTestConfig

type DockerTestConfig struct {
	// contains filtered or unexported fields
}

DockerTestConfig is docker test config object

func LoadDockerTestConfig

func LoadDockerTestConfig() (config *DockerTestConfig, err error)

LoadDockerTestConfig return docker config from envs

type PodmanTestConfig

type PodmanTestConfig struct {
	// contains filtered or unexported fields
}

PodmanTestConfig is podman test config object

func LoadPodmanTestConfig

func LoadPodmanTestConfig() (config *PodmanTestConfig, err error)

LoadPodmanTestConfig return docker config from envs

Directories

Path Synopsis
mocks

Jump to

Keyboard shortcuts

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