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

Method HomeNSRequest

pkg/component/interop_test.go:77–94  ·  view source on GitHub ↗
(ctx context.Context, req *interop.HomeNSReq)

Source from the content-addressed store, hash-verified

75}
76
77func (m mockInterop) HomeNSRequest(ctx context.Context, req *interop.HomeNSReq) (*interop.TTIHomeNSAns, error) {
78 ansHeader, err := req.AnswerHeader()
79 if err != nil {
80 return nil, err
81 }
82 return &interop.TTIHomeNSAns{
83 HomeNSAns: interop.HomeNSAns{
84 JsNsMessageHeader: interop.JsNsMessageHeader{
85 MessageHeader: ansHeader,
86 SenderID: req.ReceiverID,
87 ReceiverID: req.SenderID,
88 },
89 Result: interop.Result{
90 ResultCode: interop.ResultSuccess,
91 },
92 },
93 }, nil
94}
95
96func TestInteropTLS(t *testing.T) {
97 a := assertions.New(t)

Callers

nothing calls this directly

Calls 1

AnswerHeaderMethod · 0.80

Tested by

no test coverage detected