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

thednp / svg-path-commander / 15316798182

29 May 2025 05:13AM UTC coverage: 100.0% (+2.2%) from 97.839%
15316798182

push

github

thednp
update deps, workflows, tests, bump

729 of 729 branches covered (100.0%)

Branch coverage included in aggregate %.

1400 of 1400 relevant lines covered (100.0%)

3288.25 hits per line

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

100.0
/src/convert/pathToAbsolute.ts
1
import parsePathString from "../parser/parsePathString";
2
import absolutizeSegment from "../process/absolutizeSegment";
3
import type { AbsoluteArray, PathArray } from "../types";
4
import iterate from "../process/iterate";
5

6
/**
7
 * Parses a path string value or object and returns an array
8
 * of segments, all converted to absolute values.
9
 *
10
 * @param pathInput the path string | object
11
 * @returns the resulted `pathArray` with absolute values
12
 */
13
const pathToAbsolute = (pathInput: string | PathArray) => {
2✔
14
  const path = parsePathString(pathInput);
48✔
15

16
  return iterate<AbsoluteArray>(path, absolutizeSegment);
48✔
17
};
18
export default pathToAbsolute;
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