• 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

33.33
/projects/igniteui-angular/src/lib/combo/combo.api.ts
1
import { IgxComboBase } from './combo.common';
2
import { Injectable } from '@angular/core';
3

4
/**
5
 * @hidden
6
 */
7
@Injectable()
8
export class IgxComboAPIService {
2✔
9
    public disableTransitions = false;
40✔
10
    protected combo: IgxComboBase;
11

12
    public get valueKey() {
13
        return this.combo.valueKey !== null && this.combo.valueKey !== undefined ? this.combo.valueKey : null;
24,540!
14
    }
15

16
    public get item_focusable(): boolean {
17
        return false;
×
18
    }
19
    public get isRemote(): boolean {
20
        return this.combo.isRemote;
×
21
    }
22

23
    public get comboID(): string {
24
        return this.combo.id;
×
25
    }
26

27
    public register(combo: IgxComboBase) {
28
        this.combo = combo;
40✔
29
    }
30

31
    public clear(): void {
32
        this.combo = null;
40✔
33
    }
34

35
    public add_custom_item(): void {
UNCOV
36
        if (!this.combo) {
×
37
            return;
×
38
        }
UNCOV
39
        this.combo.addItemToCollection();
×
40
    }
41

42
    public set_selected_item(itemID: any, event?: Event): void {
UNCOV
43
        const selected = this.combo.isItemSelected(itemID);
×
UNCOV
44
        if (itemID === undefined) {
×
UNCOV
45
            return;
×
46
        }
UNCOV
47
        if (!selected) {
×
UNCOV
48
            this.combo.select([itemID], false, event);
×
49
        } else {
UNCOV
50
            this.combo.deselect([itemID], event);
×
51
        }
52
    }
53

54
    public is_item_selected(itemID: any): boolean {
55
        return this.combo.isItemSelected(itemID);
14,724✔
56
    }
57
}
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