spectest

package
v0.9.17 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package spectest contains helpers to test for baseplate spec compliance for Prometheus metrics in baseplate.go packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSpec

func ValidateSpec(tb testing.TB, metricPrefix, clientOrServer string)

ValidateSpec validates that the Prometheus metrics being exposed from baseplate.go conform to the baseplate spec. metricPrefix should be either "grpc", "http", or "thrift". clientOrServer should be either "client" or "server".

Types

This section is empty.

Jump to

Keyboard shortcuts

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