Documentation ¶
Index ¶
- func CreateHTTP(serializer yarf.Serializer, serverMiddleware ...yarf.Middleware) (client yarf.Client, stop func())
- func CreateNats(serializer yarf.Serializer, serverMiddleware ...yarf.Middleware) (client yarf.Client, stop func())
- func GetBenchmarkAdd(client yarf.Client, i, j int) func(t *testing.B)
- func GetExtraIntegrationTest(client yarf.Client) func(t *testing.T)
- func GetIntegrationTest(client yarf.Client) func(t *testing.T)
- func GetTestAdd(client yarf.Client, i, j int) func(t *testing.T)
- func GetTestAddAndDoubleWithMiddleware(client yarf.Client, i, j int) func(t *testing.T)
- func GetTestAddFloat(client yarf.Client, i, j float64) func(t *testing.T)
- func GetTestAddFloat32(client yarf.Client, i, j float32) func(t *testing.T)
- func GetTestCat(client yarf.Client, ...) func(t *testing.T)
- func GetTestConc(client yarf.Client, sleep int) func(t *testing.T)
- func GetTestContextTimeout(client yarf.Client) func(t *testing.T)
- func GetTestCopy(client yarf.Client, length int) func(t *testing.T)
- func GetTestErrors(client yarf.Client) func(t *testing.T)
- func GetTestErrors2(client yarf.Client, function func(client yarf.Client) (err error)) func(t *testing.T)
- func GetTestGen(client yarf.Client, length int) func(t *testing.T)
- func GetTestLen(client yarf.Client, length int) func(t *testing.T)
- func GetTestObservedAdd(client yarf.Client, i, j int, observers int) func(t *testing.T)
- func GetTestPanic(client yarf.Client, function func(client yarf.Client) (err error)) func(t *testing.T)
- func GetTestSHA256(client yarf.Client, length int) func(t *testing.T)
- func GetTestSub(client yarf.Client, i, j int) func(t *testing.T)
- func GetTestSum(client yarf.Client, arr []int) func(t *testing.T)
- func GetTestSumFloat(client yarf.Client, arr []float64) func(t *testing.T)
- func GetTestSumFloat32(client yarf.Client, arr []float32) func(t *testing.T)
- func GetTestSwap(client yarf.Client, tuple simple.Tuple, multiplier int) func(t *testing.T)
- func GetTestSwapWithSerlizer(client yarf.Client, tuple simple.Tuple) func(t *testing.T)
- func GetTestXOR(client yarf.Client, arr0 []bool, arr1 []bool, expected []bool) func(t *testing.T)
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 ¶
GetBenchmarkAdd generates a integer param benchmark for a specific client
func GetExtraIntegrationTest ¶
GetExtraIntegrationTest generates a integration test for a specific client with large payloads
func GetIntegrationTest ¶
GetIntegrationTest generates a integration test for a specific client
func GetTestAdd ¶
GetTestAdd generates a integer param test for a specific client
func GetTestAddAndDoubleWithMiddleware ¶
GetTestAddAndDoubleWithMiddleware adds two numbers and doubling result by using middleware
func GetTestAddFloat ¶
GetTestAddFloat generates a float param test for a specific client
func GetTestAddFloat32 ¶
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 ¶
GetTestCopy generates a large request/response payload test for a specific client
func GetTestContextTimeout ¶
GetTestContextTimeout generates a Error test for a specific client
func GetTestCopy ¶
GetTestCopy generates a large request/response payload test for a specific client
func GetTestErrors ¶
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 ¶
GetTestGen generates a large response payload test for a specific client
func GetTestLen ¶
GetTestLen generates a large request payload test for a specific client
func GetTestObservedAdd ¶
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 ¶
GetTestSHA256 generates 10 sha256 request up to len with random data
func GetTestSub ¶
GetTestSub generates a integer param test for a specific client
func GetTestSum ¶
GetTestSum sums a integer array
func GetTestSumFloat ¶
GetTestSumFloat sums a float array
func GetTestSumFloat32 ¶
GetTestSumFloat32 sums a float array
func GetTestSwap ¶
GetTestSwap generates test for swaping values in a tuple
func GetTestSwapWithSerlizer ¶
GetTestSwapWithSerlizer generates test for swaping values in a tuple using specific Json Sterilizer
Types ¶
This section is empty.