MCPcopy
hub / github.com/vercel/next.js / getTestTimings

Function getTestTimings

run-tests.js:204–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202}
203
204async function getTestTimings() {
205 if (!kvClient) {
206 console.warn('KV client not configured, skipping timing fetch')
207 return null
208 }
209
210 const timings = await retryKVOperation(async () => {
211 const data = await kvClient.get(KV_TIMINGS_KEY)
212 if (!data) {
213 console.log('No timing data found in KV store')
214 }
215 return data
216 }, 'fetch timings')
217 return timings || null
218}
219
220async function main() {
221 // Ensure we have the arguments awaited from yargs.

Callers 1

mainFunction · 0.85

Calls 4

retryKVOperationFunction · 0.85
getMethod · 0.65
warnMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected