integration

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHTTP

func CreateHTTP(serializer yarf.Serializer, serverMiddleware ...yarf.Middleware) (client yarf.Client, stop func())

CreateHTTP returns a setup using HTTP as transport

func CreateNats

func CreateNats(serializer yarf.Serializer, serverMiddleware ...yarf.Middleware) (client yarf.Client, stop func())

CreateNats returns a setup using Nats as transport

func GetBenchmarkAdd

func GetBenchmarkAdd(client yarf.Client, i, j int) func(t *testing.B)

GetBenchmarkAdd generates a integer param benchmark for a specific client

func GetExtraIntegrationTest

func GetExtraIntegrationTest(client yarf.Client) func(t *testing.T)

GetExtraIntegrationTest generates a integration test for a specific client with large payloads

func GetIntegrationTest

func GetIntegrationTest(client yarf.Client) func(t *testing.T)

GetIntegrationTest generates a integration test for a specific client

func GetTestAdd

func GetTestAdd(client yarf.Client, i, j int) func(t *testing.T)

GetTestAdd generates a integer param test for a specific client

func GetTestAddAndDoubleWithMiddleware

func GetTestAddAndDoubleWithMiddleware(client yarf.Client, i, j int) func(t *testing.T)

GetTestAddAndDoubleWithMiddleware adds two numbers and doubling result by using middleware

func GetTestAddFloat

func GetTestAddFloat(client yarf.Client, i, j float64) func(t *testing.T)

GetTestAddFloat generates a float param test for a specific client

func GetTestAddFloat32

func GetTestAddFloat32(client yarf.Client, i, j float32) func(t *testing.T)

GetTestAddFloat32 generates a float param test for a specific client

func GetTestCat

func GetTestCat(client yarf.Client, function func(client yarf.Client, arr ...string) (*yarf.Msg, error), arr ...string) func(t *testing.T)

GetTestCat generates a Array param test for a specific client

func GetTestConc

func GetTestConc(client yarf.Client, sleep int) func(t *testing.T)

GetTestCopy generates a large request/response payload test for a specific client

func GetTestContextTimeout

func GetTestContextTimeout(client yarf.Client) func(t *testing.T)

GetTestContextTimeout generates a Error test for a specific client

func GetTestCopy

func GetTestCopy(client yarf.Client, length int) func(t *testing.T)

GetTestCopy generates a large request/response payload test for a specific client

func GetTestErrors

func GetTestErrors(client yarf.Client) func(t *testing.T)

GetTestErrors generates a Error test for a specific client

func GetTestErrors2

func GetTestErrors2(client yarf.Client, function func(client yarf.Client) (err error)) func(t *testing.T)

GetTestErrors2 generates a Error test for a specific client

func GetTestGen

func GetTestGen(client yarf.Client, length int) func(t *testing.T)

GetTestGen generates a large response payload test for a specific client

func GetTestLen

func GetTestLen(client yarf.Client, length int) func(t *testing.T)

GetTestLen generates a large request payload test for a specific client

func GetTestObservedAdd

func GetTestObservedAdd(client yarf.Client, i, j int, observers int) func(t *testing.T)

GetTestObservedAdd adds two numbers and multiplys it by the num of observers

func GetTestPanic

func GetTestPanic(client yarf.Client, function func(client yarf.Client) (err error)) func(t *testing.T)

GetTestPanic generates a Error and test server side recover middleware

func GetTestSHA256

func GetTestSHA256(client yarf.Client, length int) func(t *testing.T)

GetTestSHA256 generates 10 sha256 request up to len with random data

func GetTestSub

func GetTestSub(client yarf.Client, i, j int) func(t *testing.T)

GetTestSub generates a integer param test for a specific client

func GetTestSum

func GetTestSum(client yarf.Client, arr []int) func(t *testing.T)

GetTestSum sums a integer array

func GetTestSumFloat

func GetTestSumFloat(client yarf.Client, arr []float64) func(t *testing.T)

GetTestSumFloat sums a float array

func GetTestSumFloat32

func GetTestSumFloat32(client yarf.Client, arr []float32) func(t *testing.T)

GetTestSumFloat32 sums a float array

func GetTestSwap

func GetTestSwap(client yarf.Client, tuple simple.Tuple, multiplier int) func(t *testing.T)

GetTestSwap generates test for swaping values in a tuple

func GetTestSwapWithSerlizer

func GetTestSwapWithSerlizer(client yarf.Client, tuple simple.Tuple) func(t *testing.T)

GetTestSwapWithSerlizer generates test for swaping values in a tuple using specific Json Sterilizer

func GetTestXOR

func GetTestXOR(client yarf.Client, arr0 []bool, arr1 []bool, expected []bool) func(t *testing.T)

GetTestXOR sums a integer array

Types

This section is empty.

Jump to

Keyboard shortcuts

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