test_tools

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Miscellaneous helpful functions to make testing easier with less boilerplate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(t *testing.T, msg string, err error)

CheckError prints the passed error and message and fails the test if the given error is not nil.

func ExampleRecord

func ExampleRecord() arrow.Record

ExampleRecord creates an arrow Record with some arbitrary data, used for testing. The returned Record should be released when it is not needed anymore.

func GetHost

func GetHost() string

GetHost returns the host to connect to for the tests. By default it is localhost, but can be overriden by setting the DH_HOST environment variable.

func GetPort

func GetPort() string

GetPort returns the port to connect to for the tests. By default it is 10000, but can be overriden by setting the DH_PORT environment variable.

func RandomRecord

func RandomRecord(numCols int, numRows int, maxNum int) arrow.Record

RandomRecord creates an arrow record with random int32 values. It will have the specified number of rows and columns, each entry will be in the range [0, maxNum).

Types

This section is empty.

Jump to

Keyboard shortcuts

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