apitest

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package apitest provides helper functions for testing the api package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEnum

func CheckEnum(t *testing.T, got api.Enum, want api.Enum)

CheckEnum compares two `Enum` instances ignoring the enum value order.

func CheckMessage

func CheckMessage(t *testing.T, got *api.Message, want *api.Message)

CheckMessage compares two `Message` instances ignoring the order of fields, and oneofs and ignoring child messages.

func CheckMethod

func CheckMethod(t *testing.T, service *api.Service, name string, want *api.Method)

CheckMethod finds a `Method` in a `Service` and compares the values.

func CheckService

func CheckService(t *testing.T, got *api.Service, want *api.Service)

CheckService compares two `Service` instances ignoring method order.

Types

This section is empty.

Jump to

Keyboard shortcuts

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