Documentation ¶
Overview ¶
Package checkerror provides chain elements to check for errors during testing
Index ¶
- func CheckPropagatesErrorClient(t *testing.T, clientUnderTest networkservice.NetworkServiceClient) networkservice.NetworkServiceClient
- func CheckPropogatesErrorServer(t *testing.T, serverUnderTest networkservice.NetworkServiceServer) networkservice.NetworkServiceServer
- func NewClient(t *testing.T, isNil bool, errs ...error) networkservice.NetworkServiceClient
- func NewServer(t *testing.T, isNil bool, errs ...error) networkservice.NetworkServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPropagatesErrorClient ¶
func CheckPropagatesErrorClient(t *testing.T, clientUnderTest networkservice.NetworkServiceClient) networkservice.NetworkServiceClient
CheckPropagatesErrorClient - NetworkServiceClient that will check to see if the clientUnderTest correctly propagates error
func CheckPropogatesErrorServer ¶
func CheckPropogatesErrorServer(t *testing.T, serverUnderTest networkservice.NetworkServiceServer) networkservice.NetworkServiceServer
CheckPropogatesErrorServer - NetworkServiceServer that will check to see if the serverUnderTest correctly propagates error
func NewClient ¶
func NewClient(t *testing.T, isNil bool, errs ...error) networkservice.NetworkServiceClient
NewClient - returns NetworkServiceClient chain element that checks for an error being returned from the next element in the chain
t - *testing.T for checking isNil - if true, check that error is nil, if false, check that err is not nil. errs - optional - if errs[0] is provided, will check to see if the error matches errs[0]
func NewServer ¶
func NewServer(t *testing.T, isNil bool, errs ...error) networkservice.NetworkServiceServer
NewServer - returns NetworkServiceServer chain element that checks for an error being returned from the next element in the chain
t - *testing.T for checking isNil - if true, check that error is nil, if false, check that err is not nil. errs - optional - if errs[0] is provided, will check to see if the error matches errs[0]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.