testhelper

package
v0.0.0-...-6d74526 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfigFile

func CreateConfigFile(name string, cfg interface{}) (homeDir string, file *os.File, cleanup func(), err error)

CreateConfigFile creates a new config file in a tempporary directory based on cfg's data. The type of cfg is set to interface{} to avoid cyclic import, but it must be *athenai.Config.

func CreateResultConfig

func CreateResultConfig(outputLocation string) *athena.ResultConfiguration

CreateResultConfig creates a new *athena.ResultConfiguration.

func CreateRows

func CreateRows(rawRows [][]string) []*athena.Row

CreateRows creates an array of *athena.Row from an array of string arrays.

func CreateStats

func CreateStats(execTime, scannedBytes int64) *athena.QueryExecutionStatistics

CreateStats creates a new QueryExecutionStatistics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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