• 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

30.77
/projects/igniteui-angular/src/lib/grids/grid/grid.details.pipe.ts
1
import { PipeTransform, Pipe, Inject } from '@angular/core';
2
import { GridType, IGX_GRID_BASE } from '../common/grid.interface';
3

4
/** @hidden */
5
@Pipe({
6
    name: 'gridDetails',
7
    standalone: true
8
})
9
export class IgxGridDetailsPipe implements PipeTransform {
2✔
10

11
    constructor(@Inject(IGX_GRID_BASE) private grid: GridType) { }
36✔
12

13
    public transform(collection: any[], hasDetails: boolean, expansionStates: Map<any, boolean>, _pipeTrigger: number) {
14
        if (!hasDetails) {
66✔
15
            return collection;
66✔
16
        }
UNCOV
17
        const res = this.addDetailRows(collection, expansionStates);
×
UNCOV
18
        return res;
×
19
    }
20

21
    protected addDetailRows(collection: any[], _expansionStates: Map<any, boolean>) {
UNCOV
22
        const result = [];
×
UNCOV
23
        collection.forEach((v) => {
×
UNCOV
24
            result.push(v);
×
UNCOV
25
            if (!this.grid.isGroupByRecord(v) && !this.grid.isSummaryRow(v) &&
×
26
                this.grid.gridAPI.get_row_expansion_state(v)) {
UNCOV
27
                const detailsObj = { detailsData: v };
×
UNCOV
28
                result.push(detailsObj);
×
29
            }
30
        });
UNCOV
31
        return result;
×
32
    }
33
}
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