Documentation

Overview

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

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func ExtractSegment

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

      ExtractSegment returns the unmarshalled segment JSON from a ReadUDP response.

      func ReadUDP

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

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

        Types

        This section is empty.

        Source Files