| 118 | } |
| 119 | |
| 120 | type MockKeyRegistry struct { |
| 121 | GetByIDFunc func(context.Context, types.EUI64, types.EUI64, []byte, []string) (*ttnpb.SessionKeys, error) |
| 122 | SetByIDFunc func( |
| 123 | context.Context, |
| 124 | types.EUI64, |
| 125 | types.EUI64, |
| 126 | []byte, |
| 127 | []string, |
| 128 | func(*ttnpb.SessionKeys) (*ttnpb.SessionKeys, []string, error), |
| 129 | ) (*ttnpb.SessionKeys, error) |
| 130 | DeleteFunc func(context.Context, types.EUI64, types.EUI64) error |
| 131 | BatchDeleteFunc func(context.Context, []*ttnpb.EndDeviceIdentifiers) error |
| 132 | } |
| 133 | |
| 134 | // GetByID calls GetByIDFunc if set and panics otherwise. |
| 135 | func (m MockKeyRegistry) GetByID(ctx context.Context, joinEUI, devEUI types.EUI64, id []byte, paths []string) (*ttnpb.SessionKeys, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected