contracttest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 4 Imported by: 0

README

contracttest 包 Package

contracttest 提供 L1 复用的 JSON 字段、错误分类和健康状态断言。

Use these helpers from consumer package tests to lock kernel-compatible contract shapes.

Documentation

Overview

Package contracttest 提供 L1 包复用的契约测试助手。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertErrorKind

func AssertErrorKind(t testing.TB, got error, want errx.ErrorKind)

func AssertHealthStatus

func AssertHealthStatus(t testing.TB, got healthx.HealthStatus, want healthx.HealthStatusValue)

func AssertJSONFields

func AssertJSONFields(t testing.TB, value any, fields ...string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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