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

Struct mockTarget

pkg/interop/server_test.go:54–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54type mockTarget struct {
55 JoinRequestFunc func(context.Context, *interop.JoinReq) (*interop.JoinAns, error)
56 AppSKeyRequestFunc func(context.Context, *interop.AppSKeyReq) (*interop.AppSKeyAns, error)
57 HomeNSRequestFunc func(context.Context, *interop.HomeNSReq) (*interop.TTIHomeNSAns, error)
58}
59
60func (m mockTarget) JoinRequest(ctx context.Context, req *interop.JoinReq) (*interop.JoinAns, error) {
61 if m.JoinRequestFunc != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected