testing

package
v0.0.0-...-e94153c Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const LookupBasicResponse = `` /* 137-byte string literal not displayed */

LookupBasicResponse provides a GET response of a lookup.

View Source
const LookupMetadataResponse = `
{
    "found": true,
    "payload": [
      "bob",
      "lucy",
      "david"
    ],
    "status": "ok"
}
`

LookupMetadataResponse is the expected response of a metadata lookup.

View Source
const LookupSingleBoolResponse = `
{
  "found": true,
  "payload": true,
  "status": "ok"
}
`

LookupSingleBoolResponse provides a GET response of a single bool lookup.

Variables

View Source
var LookupBasicResult = jerakia.LookupResult{
	Status: "ok",
	Found:  true,
	Payload: map[string]interface{}{
		"argentina": "buenos aires",
		"france":    "paris",
		"spain":     "malaga",
	},
}

LookupBasicResult is the expected result of a basic lookup.

View Source
var LookupMetadataResult = jerakia.LookupResult{
	Status: "ok",
	Found:  true,
	Payload: []interface{}{
		"bob", "lucy", "david",
	},
}

LookupMetadataResult is the expected result of a metadata lookup.

View Source
var LookupSingleBoolResult = jerakia.LookupResult{
	Status:  "ok",
	Found:   true,
	Payload: true,
}

LookupSingleBoolResult is the expected result of a single bool lookup.

Functions

func HandleLookupBasic

func HandleLookupBasic(t *testing.T)

HandleLookupBasic tests a basic lookup.

func HandleLookupMetadata

func HandleLookupMetadata(t *testing.T)

HandleLookupMetadata tests a metadata lookup.

func HandleLookupSingleBool

func HandleLookupSingleBool(t *testing.T)

HandleLookupSingleBool tests a single bool lookup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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