(params, record, folder_uid, pb_only=False)
| 50 | record_uid bytes match the record UID so the batch response matcher works. |
| 51 | """ |
| 52 | def _side_effect(params, record, folder_uid, pb_only=False): |
| 53 | if not record.record_uid: |
| 54 | record.record_uid = keeper_utils.generate_uid() |
| 55 | captured.append(record) |
| 56 | if pb_only: |
| 57 | pb = record_pb2.RecordAdd() |
| 58 | pb.record_uid = keeper_utils.base64_url_decode(record.record_uid) |
| 59 | return pb |
| 60 | return _side_effect |
| 61 | |
| 62 |
nothing calls this directly
no outgoing calls
no test coverage detected