MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / handler

Function handler

pkg/rpcmiddleware/validator/validator_test.go:83–87  ·  view source on GitHub ↗
(_ context.Context, req any)

Source from the content-addressed store, hash-verified

81}
82
83func handler(_ context.Context, req any) (any, error) {
84 res := req.(interface{ getResult() *testSubject }).getResult()
85 res.handlerCalled = true
86 return res, nil
87}
88
89func TestUnaryServerInterceptor(t *testing.T) {
90 a := assertions.New(t)

Callers 15

UnaryServerInterceptorFunction · 0.85
StreamServerInterceptorFunction · 0.85
NewPBControlPlaneFunction · 0.85
NewPBDataPlaneFunction · 0.85
NewPBMapperFunction · 0.85
NewPBIAMFunction · 0.85
HandleLinkADRAnsFunction · 0.85
UnaryServerInterceptorFunction · 0.85
StreamServerInterceptorFunction · 0.85
TestHTTPFunction · 0.85
UnaryServerInterceptorFunction · 0.85
StreamServerInterceptorFunction · 0.85

Calls 1

getResultMethod · 0.80

Tested by

no test coverage detected