testutil

package
v1.38.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PullImage

func PullImage(t *testing.T, image string)

func RequireTestdata

func RequireTestdata(t testing.TB, path string)

RequireTestdata skips the test unless the large fixture tree (Python, glibc and musl binaries) is present at the given path. The fixtures live in https://github.com/coroot/pyroscope-ebpf-testdata and are not part of this repository. Clone them into profiling/testdata to run these tests.

Types

type Container

type Container struct {
	T             *testing.T
	ContainerID   string
	ContainerPort string
	// contains filtered or unexported fields
}

func RunContainerWithPort

func RunContainerWithPort(t *testing.T, image string, port string) *Container

func (*Container) HostPort

func (c *Container) HostPort() string

func (*Container) Kill

func (c *Container) Kill()

func (*Container) Run

func (c *Container) Run(cmd ...string)

func (*Container) Url

func (c *Container) Url() string

func (*Container) WaitForPort

func (c *Container) WaitForPort()

Jump to

Keyboard shortcuts

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