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

Method Header

pkg/util/test/rpctest.go:95–100  ·  view source on GitHub ↗

Header calls HeaderFunc if set and panics otherwise.

()

Source from the content-addressed store, hash-verified

93
94// Header calls HeaderFunc if set and panics otherwise.
95func (m MockClientStream) Header() (metadata.MD, error) {
96 if m.HeaderFunc == nil {
97 panic("Header called, but not set")
98 }
99 return m.HeaderFunc()
100}
101
102// Trailer calls TrailerFunc if set and panics otherwise.
103func (m MockClientStream) Trailer() metadata.MD {

Callers 15

RegisterRoutesMethod · 0.80
writeResponseFunction · 0.80
handleClaimMethod · 0.80
handleBatchClaimsMethod · 0.80
TestPbaFunction · 0.80
outputMethod · 0.80
RegisterRoutesMethod · 0.80
TestOAuthFlowFunction · 0.80
updateInfoMethod · 0.80
ToHTTPFunction · 0.80
TestTokenFunction · 0.80

Calls

no outgoing calls

Tested by 15

writeResponseFunction · 0.64
handleClaimMethod · 0.64
handleBatchClaimsMethod · 0.64
TestPbaFunction · 0.64
TestOAuthFlowFunction · 0.64
TestTokenFunction · 0.64
TestHSTSHeadersFunction · 0.64
TestGRPCFunction · 0.64
TestHTTPFunction · 0.64