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

atinc / ngx-tethys / 68ef226c-f83e-44c1-b8ed-e420a83c5d84

28 May 2025 10:31AM UTC coverage: 10.352% (-80.0%) from 90.316%
68ef226c-f83e-44c1-b8ed-e420a83c5d84

Pull #3460

circleci

pubuzhixing8
chore: xxx
Pull Request #3460: refactor(icon): migrate signal input #TINFR-1476

132 of 6823 branches covered (1.93%)

Branch coverage included in aggregate %.

10 of 14 new or added lines in 1 file covered. (71.43%)

11648 existing lines in 344 files now uncovered.

2078 of 14525 relevant lines covered (14.31%)

6.69 hits per line

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

25.0
/src/core/behaviors/tabindex.ts
1
import { coerceNumberProperty } from '@angular/cdk/coercion';
2
import { Constructor, MixinBase } from './constructor';
3
import { mixinDisabled, ThyCanDisable } from './disabled';
4

5
export interface ThyHasTabIndex {
4✔
6
    tabIndex: number;
4✔
7

UNCOV
8
    defaultTabIndex: number;
×
9
}
10

UNCOV
11
type HasTabIndexCtor = Constructor<ThyHasTabIndex>;
×
12

13
/** Mixin to augment a directive with a `tabIndex` property. */
UNCOV
14
export function mixinTabIndex<T extends Constructor<ThyCanDisable>>(base: T, defaultTabIndex = 0): HasTabIndexCtor & T {
×
UNCOV
15
    return class extends base implements ThyHasTabIndex {
×
UNCOV
16
        private _tabIndex: number = defaultTabIndex;
×
17

18
        defaultTabIndex = defaultTabIndex;
19

20
        get tabIndex(): number {
1✔
21
            return this.thyDisabled ? -1 : this._tabIndex;
22
        }
23
        set tabIndex(value: number) {
24
            this._tabIndex = value != null ? coerceNumberProperty(value) : this.defaultTabIndex;
25
        }
26

27
        constructor(...args: any[]) {
28
            super(...args);
29
        }
30
    };
31
}
32

33
export const TabIndexMixinBase: Constructor<ThyHasTabIndex> & Constructor<ThyCanDisable> & typeof MixinBase = mixinTabIndex(
34
    mixinDisabled(MixinBase)
35
);
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