datareplacer

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceData

func ReplaceData(requestData map[string]interface{}, responseData map[string]interface{}) map[string]interface{}

ReplaceData takes a generated response and replaces values in it that share a name and type of parameters that were sent in with the request.

This is designed to have the effect of making returned fixtures more realistic while also staying a simple heuristic that doesn't require very much maintenance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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