Documentation
¶
Overview ¶
Package checkgrpc provides gRPC status error comparison for github.com/powerman/check.
Import this package as a blank import in your test file or TestMain to enable gRPC status comparison via check.Err/NotErr:
import _ "github.com/powerman/checkgrpc"
It also imports github.com/powerman/checkproto, so a single blank import covers both protobuf message and gRPC status comparison.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGRPCStatus ¶
CheckGRPCStatus compares two errors using gRPC status comparison. It matches the built-in behavior: the actual error is unwrapped to its root cause (as check.Err does internally), and if either the unwrapped actual or the expected error implements GRPCStatus, the comparison uses proto.Equal on the converted status protos.
Types ¶
This section is empty.