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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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