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

ota-meshi / svelte-eslint-parser / 4581268530

01 Apr 2023 04:18AM UTC coverage: 90.693%. Remained the same
4581268530

push

github

GitHub
chore: release svelte-eslint-parser (#308)

880 of 1041 branches covered (84.53%)

Branch coverage included in aggregate %.

2053 of 2193 relevant lines covered (93.62%)

27060.16 hits per line

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

63.64
/src/parser/sort.ts
1
/**
30,362✔
2
 * Sort tokens
3
 */
4
export function sortNodes<T extends { range: [number, number] }>(
5
  tokens: T[] | null | undefined
6
): T[] {
7
  if (!tokens) {
30,359!
8
    return [];
×
9
  }
10
  return tokens.sort((a, b) => {
30,359✔
11
    if (a.range[0] !== b.range[0]) {
1,801,712!
12
      return a.range[0] - b.range[0];
1,801,712✔
13
    }
14
    return a.range[1] - b.range[1];
×
15
  });
16
}
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