• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / storage / 12868487000

20 Jan 2025 12:55PM UTC coverage: 77.296% (-0.7%) from 78.025%
12868487000

Pull #606

github

web-flow
Merge f40009cc9 into c8d9fd8ba
Pull Request #606: feat: reconcile orphan objects from admin endpoint

1278 of 1809 branches covered (70.65%)

Branch coverage included in aggregate %.

912 of 1340 new or added lines in 26 files covered. (68.06%)

1 existing line in 1 file now uncovered.

15169 of 19469 relevant lines covered (77.91%)

159.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

44.44
/src/internal/testing/generators/array.ts
1
export async function eachParallel<T>(times: number, fn: (index: number) => Promise<T>) {
1✔
2
  const promises = []
2✔
3
  for (let i = 0; i < times; i++) {
2✔
4
    promises.push(fn(i))
320✔
5
  }
320✔
6

2✔
7
  return Promise.all(promises)
2✔
8
}
2✔
9

1✔
NEW
10
export function pickRandomFromArray<T>(arr: T[]): T {
×
NEW
11
  return arr[Math.floor(Math.random() * arr.length)]
×
NEW
12
}
×
13

1✔
NEW
14
export function pickRandomRangeFromArray<T>(arr: T[], range: number): T[] {
×
NEW
15
  if (arr.length <= range) {
×
NEW
16
    return arr
×
NEW
17
  }
×
NEW
18

×
NEW
19
  const result = new Set<T>()
×
NEW
20
  while (result.size < range) {
×
NEW
21
    result.add(pickRandomFromArray(arr))
×
NEW
22
  }
×
NEW
23

×
NEW
24
  return Array.from(result)
×
NEW
25
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc