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

supabase / storage / 12804971061

16 Jan 2025 08:32AM UTC coverage: 77.271% (-0.8%) from 78.025%
12804971061

Pull #606

github

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

1278 of 1809 branches covered (70.65%)

Branch coverage included in aggregate %.

900 of 1329 new or added lines in 24 files covered. (67.72%)

2 existing lines in 1 file now uncovered.

15156 of 19459 relevant lines covered (77.89%)

159.62 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