testutil

package
v0.0.0-...-70e5bc8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

Package testutil includes utility functions for Upspin tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PickPort

func PickPort() (string, error)

PickPort listens to an available port on localhost, closes the listener, and returns the port number. This function may be used for finding an available port for tests that use the network.

func Repo

func Repo(dir ...string) string

Repo returns the local filename of a file in the Upspin repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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