MCPcopy Create free account
hub / github.com/ReactTooltip/react-tooltip / resolveInputFiles

Function resolveInputFiles

benchmarks/aggregate-benchmarks.mjs:92–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92async function resolveInputFiles() {
93 if (explicitFiles.length > 0) {
94 return explicitFiles
95 }
96
97 const entries = await readdir(resultsDir)
98 const scalingEntries = entries
99 .filter((entry) => entry.endsWith('.json'))
100 .filter((entry) => entry.startsWith('scaling-'))
101 .map((entry) => path.join(resultsDir, entry))
102 .sort()
103
104 if (useAll) {
105 return scalingEntries
106 }
107
108 return scalingEntries.slice(-latest)
109}
110
111function resolveGenerationSelection(runs) {
112 if (useAllGenerations) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected