(options)
| 11 | } |
| 12 | |
| 13 | function createDynamoDBEvent(options){ |
| 14 | var options = setDefaults(options, "dynamo"); |
| 15 | var dynamoEvent = options.events.reduce(function(obj, curr) { |
| 16 | for (var i = 0; i < curr.number; i++) { |
| 17 | obj.Records.push(createDynamoDBRecord(curr.type, options)); |
| 18 | }; |
| 19 | return obj; |
| 20 | }, {"Records": []}); |
| 21 | |
| 22 | return dynamoEvent; |
| 23 | } |
| 24 | |
| 25 | function createDynamoDBRecord(type, options) { |
| 26 | return { |
nothing calls this directly
no test coverage detected