otest

package
v0.0.0-...-d727afa Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package otest carries some shared setup code for unit tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrSkip

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

GetOrSkip returns the value of the specified environment variable, marking t as skipped if the value is unset or empty.

func NewClient

func NewClient(t *testing.T, opts *jape.Client) *twitter.Client

NewClient is a wrapper for twitter.NewClient that sets up debug logging if enabled by the -verbose-log flag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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