• 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

50.0
/projects/igniteui-angular/src/lib/directives/text-highlight/text-highlight.service.ts
1
import { EventEmitter, Injectable } from '@angular/core';
2
import { IActiveHighlightInfo } from './text-highlight.directive';
3

4
@Injectable({
5
  providedIn: 'root'
6
})
7
export class IgxTextHighlightService {
2✔
8
    public highlightGroupsMap = new Map<string, IActiveHighlightInfo>();
35✔
9
    public onActiveElementChanged = new EventEmitter<string>();
35✔
10

11
    constructor() { }
12

13
    /**
14
     * Activates the highlight at a given index.
15
     * (if such index exists)
16
     */
17
    public setActiveHighlight(groupName: string, highlight: IActiveHighlightInfo) {
UNCOV
18
        this.highlightGroupsMap.set(groupName, highlight);
×
UNCOV
19
        this.onActiveElementChanged.emit(groupName);
×
20
    }
21

22
    /**
23
     * Clears any existing highlight.
24
     */
25
    public clearActiveHighlight(groupName) {
UNCOV
26
        this.highlightGroupsMap.set(groupName, {
×
27
            index: -1
28
        });
UNCOV
29
        this.onActiveElementChanged.emit(groupName);
×
30
    }
31

32
    /**
33
     * Destroys a highlight group.
34
     */
35
    public destroyGroup(groupName: string) {
36
        this.highlightGroupsMap.delete(groupName);
19✔
37
    }
38
}
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