* This functions calls other formatting functions on a benchmark result so that * every Firestore entry is compatable and contains desired information * * @param result Individual result in a list of fulfilled promises
( result, makeCompatable = makeCompatableWithFirestore, getDate = getReadableDate)
| 78 | * @param result Individual result in a list of fulfilled promises |
| 79 | */ |
| 80 | function formatForFirestore( |
| 81 | result, makeCompatable = makeCompatableWithFirestore, |
| 82 | getDate = getReadableDate) { |
| 83 | let firestoreMap = {}; |
| 84 | firestoreMap.benchmarkInfo = makeCompatable(result); |
| 85 | firestoreMap.date = getDate(); |
| 86 | |
| 87 | return firestoreMap; |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * This function makes the result object returned from benchmark app aligned |
no outgoing calls
no test coverage detected
searching dependent graphs…