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

IgniteUI / igniteui-angular / 6797384210

08 Nov 2023 11:09AM UTC coverage: 91.853% (-0.3%) from 92.123%
6797384210

push

github

web-flow
Merge pull request #13613 from IgniteUI/mkirova/fix-empty-pivot

fix(igxPivotGrid): Add check in case data is empty due to removing al…

12459 of 14514 branches covered (0.0%)

1 of 1 new or added line in 1 file covered. (100.0%)

2127 existing lines in 217 files now uncovered.

25413 of 27667 relevant lines covered (91.85%)

31122.38 hits per line

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

50.0
/projects/igniteui-angular/src/lib/data-operations/data-clone-strategy.ts
1
import { cloneValue, cloneValueCached } from "../core/utils";
2

3
export interface IDataCloneStrategy {
4
    /**
5
     * Clones provided data
6
     * @param data primitive value, date and object to be cloned
7
     * @returns deep copy of provided value
8
     */
9
    clone(data: any): any;
10
}
11

12
/**
13
 * Simplified data clone strategy that deep clones primitive values, dates and objects.
14
 * Does not support circular references in objects.
15
 */
16
export class DefaultDataCloneStrategy implements IDataCloneStrategy {
17
    public clone(data: any): any {
18
        return cloneValue(data);
67,331✔
19
    }
20
}
21

22
/**
23
 * Data clone strategy that is uses cache to deep clone primitive values, dates and objects.
24
 * It allows using circular references inside object.
25
 */
26
export class CachedDataCloneStrategy implements IDataCloneStrategy {
27
    public clone(data: any): any {
UNCOV
28
        return cloneValueCached(data, new Map<any, any>);
×
29
    }
30
}
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