utils

package
v0.0.0-...-7b13089 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEqual

func CheckEqual(t *testing.T, expected interface{}, obtained interface{}, message string)

CheckEqual Compare two values of any type

func CompareMaps

func CompareMaps(t *testing.T, expected map[string]interface{}, obtained map[string]interface{}, message string)

CompareMaps Compare content of two maps by converting it into json since api handles json data

func CompareTypeArray

func CompareTypeArray(t *testing.T, arrA []interface{}, arrB []interface{}, message string)

CompareTypeArray Compare type of elements in an array recursively

func CompareTypeMap

func CompareTypeMap(t *testing.T, mapA map[string]interface{}, mapB map[string]interface{}, message string)

CompareTypeMap Compares type of elements in a map recursively

func RemoveKey

func RemoveKey(input map[string]interface{}, keys []string) (map[string]interface{}, error)

RemoveKey Remove Values from the map based on the list of keys

Types

This section is empty.

Jump to

Keyboard shortcuts

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