dbtest

package
v2.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Helper package that should only be used in test files

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetenvOrSkip

func GetenvOrSkip(t *testing.T, key string) string

GetenvOrSkip gets an environment variable, and skips the test if it is empty.

func GetenvURLOrSkip

func GetenvURLOrSkip(t *testing.T, key string) *url.URL

GetenvURLOrSkip gets an environment variable, parses it as a URL, fails the test if the URL is invalid, and skips the test if empty.

func MustParseURL

func MustParseURL(t *testing.T, s string) *url.URL

MustParseURL parses a URL from string, and fails the test if the URL is invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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