testing

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestSession

func CreateTestSession(host string, username string, password string) (*sdk.Session, error)

CreateTestSession creates a Reva session for testing. For this, it performs a basic login using the specified credentials.

func FormatTestError

func FormatTestError(funcName string, err error, params ...interface{}) string

FormatTestError pretty-formats a function error.

func FormatTestResult

func FormatTestResult(funcName string, wants interface{}, got interface{}, params ...interface{}) string

FormatTestResult pretty-formats a function call along with its parameters, result and expected result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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