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

IgniteUI / igniteui-angular / 16193550997

10 Jul 2025 11:12AM UTC coverage: 4.657% (-87.0%) from 91.64%
16193550997

Pull #16028

github

web-flow
Merge f7a9963b8 into 87246e3ce
Pull Request #16028: fix(radio-group): dynamically added radio buttons do not initialize

178 of 15764 branches covered (1.13%)

18 of 19 new or added lines in 2 files covered. (94.74%)

25721 existing lines in 324 files now uncovered.

1377 of 29570 relevant lines covered (4.66%)

0.53 hits per line

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

0.0
/projects/igniteui-angular/src/lib/grids/common/random.ts
1
/**
2
 * Use the function to get a random UUID string when secure context is not guaranteed making crypto.randomUUID unavailable.
3
 * @returns A random UUID string.
4
 */
5
export function getUUID(): `${string}-${string}-${string}-${string}-${string}` {
UNCOV
6
    if (typeof crypto.randomUUID === 'function') {
×
UNCOV
7
        return crypto.randomUUID();
×
8
    }
9
    // Secure fallback using crypto.getRandomValues()
UNCOV
10
    const bytes = new Uint8Array(16);
×
UNCOV
11
    crypto.getRandomValues(bytes);
×
12

13
    // Set version (4) and variant (RFC 4122)
UNCOV
14
    bytes[6] = (bytes[6] & 0x0f) | 0x40; // Version 4
×
UNCOV
15
    bytes[8] = (bytes[8] & 0x3f) | 0x80; // Variant 1
×
16

UNCOV
17
    const a = [...bytes].map((b) => b.toString(16).padStart(2, '0')).join('');
×
UNCOV
18
    return `${a.slice(0, 8)}-${a.slice(8, 12)}-${a.slice(12, 16)}-${a.slice(16, 20)}-${a.slice(20)}`;
×
19
}
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