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

IgniteUI / igniteui-angular / 13331632524

14 Feb 2025 02:51PM CUT coverage: 22.015% (-69.6%) from 91.622%
13331632524

Pull #15372

github

web-flow
Merge d52d57714 into bcb78ae0a
Pull Request #15372: chore(*): test ci passing

1990 of 15592 branches covered (12.76%)

431 of 964 new or added lines in 18 files covered. (44.71%)

19956 existing lines in 307 files now uncovered.

6452 of 29307 relevant lines covered (22.02%)

249.17 hits per line

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

13.33
/projects/igniteui-angular/src/lib/data-operations/operations.ts
1
import { IGroupByKey } from './groupby-expand-state.interface';
2
import { IGroupByRecord } from './groupby-record.interface';
3
import { IGroupingExpression } from './grouping-expression.interface';
4
import { DefaultSortingStrategy } from './sorting-strategy';
5

6
export const isHierarchyMatch = (h1: Array<IGroupByKey>, h2: Array<IGroupByKey>, expressions: IGroupingExpression[]): boolean => {
2✔
UNCOV
7
    if (h1.length !== h2.length) {
×
UNCOV
8
        return false;
×
9
    }
UNCOV
10
    return h1.every((level, index): boolean => {
×
UNCOV
11
        const expr = expressions.find(e => e.fieldName === level.fieldName);
×
UNCOV
12
        const comparer = expr.groupingComparer || DefaultSortingStrategy.instance().compareValues;
×
UNCOV
13
        return level.fieldName === h2[index].fieldName && comparer(level.value, h2[index].value) === 0;
×
14
    });
15
};
16

17
export const getHierarchy = (gRow: IGroupByRecord): Array<IGroupByKey> => {
2✔
UNCOV
18
    const hierarchy: Array<IGroupByKey> = [];
×
UNCOV
19
    if (gRow !== undefined && gRow.expression) {
×
UNCOV
20
        hierarchy.push({ fieldName: gRow.expression.fieldName, value: gRow.value });
×
UNCOV
21
        while (gRow.groupParent) {
×
UNCOV
22
            gRow = gRow.groupParent;
×
UNCOV
23
            hierarchy.unshift({ fieldName: gRow.expression.fieldName, value: gRow.value });
×
24
        }
25
    }
UNCOV
26
    return hierarchy;
×
27
};
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

© 2025 Coveralls, Inc