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

antvis / T8 / 16795460482

07 Aug 2025 04:55AM UTC coverage: 66.348% (+17.0%) from 49.32%
16795460482

push

github

web-flow
feat: enhance parsing and rendering capabilities with clarinet (#123)

* feat: enhance parsing and rendering capabilities with clarinet

* chore: update limit-size

* feat: refactor T8ClarinetParser to functional approach

* chore: update html snapshot format

* refactor: streamline text processing and enhance rendering capabilities

* refactor: optimize rendering logic in Paragraph and Section components

* refactor: improve rendering logic in Paragraph and Section components by conditionally rendering content

* refactor: improve HTML structure and formatting in text-simple snapshot

* refactor: update render type in PhraseDescriptor and BlockDescriptor interfaces

---------

Co-authored-by: hustcc <i@hust.cc>

119 of 209 branches covered (56.94%)

Branch coverage included in aggregate %.

39 of 99 new or added lines in 7 files covered. (39.39%)

297 of 418 relevant lines covered (71.05%)

7.17 hits per line

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

0.0
/src/utils/setValueByPath.ts
1
type Path = (string | number)[];
2

3
export function setValueByPath<T extends object>(obj: T, pathArr: Path, value: unknown): boolean {
NEW
4
  if (pathArr.length === 0) {
×
NEW
5
    Object.assign(obj, value);
×
NEW
6
    return false;
×
7
  }
8

NEW
9
  if (pathArr.length === 1) {
×
NEW
10
    const key = pathArr[0];
×
NEW
11
    if (obj && typeof obj === 'object') {
×
NEW
12
      (obj as Record<string, unknown>)[key] = value;
×
NEW
13
      return true;
×
14
    }
NEW
15
    return false;
×
16
  }
17

NEW
18
  const [key, ...restPath] = pathArr;
×
19

NEW
20
  if (obj && typeof obj === 'object' && Object.prototype.hasOwnProperty.call(obj, key)) {
×
NEW
21
    return setValueByPath(obj[key] as T, restPath, value);
×
22
  } else {
NEW
23
    return false;
×
24
  }
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