goa: goa.design/goa/middleware/xray/xraytest Index | Files

package xraytest

import "goa.design/goa/middleware/xray/xraytest"

Package xraytest contains test helpers for package xray that are used by transport-specific X-Ray middleware tests.

Index

Package Files

testing.go

func ExtractSegment Uses

func ExtractSegment(t *testing.T, js string) *xray.Segment

ExtractSegment returns the unmarshalled segment JSON from a ReadUDP response.

func ReadUDP Uses

func ReadUDP(t *testing.T, udplisten string, expectedMessages int, sender func()) []string

ReadUDP verifies that exactly the expected number of messages are received.

Package xraytest imports 6 packages (graph). Updated 2019-08-24. Refresh now. Tools for package owners.