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.


Package Files


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 2020-10-22. Refresh now. Tools for package owners.