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

atinc / ngx-tethys / 324188e0-628b-451d-a691-3f904b4f17f5

16 May 2025 06:07AM UTC coverage: 90.333% (+0.004%) from 90.329%
324188e0-628b-451d-a691-3f904b4f17f5

push

circleci

web-flow
refactor(radio): migrate to signal for radio #TINFR-1762 (#3432)

5607 of 6865 branches covered (81.68%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 3 files covered. (100.0%)

4 existing lines in 3 files now uncovered.

13455 of 14237 relevant lines covered (94.51%)

917.05 hits per line

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

85.0
/src/radio/button/radio-button.component.ts
1
import { Component, OnInit, HostBinding, HostListener, input } from '@angular/core';
2
import { coerceBooleanProperty } from '@angular/cdk/coercion';
3
import { ThyRadio } from '../radio.component';
4

5
/**
6
 * @name [thy-radio-button],[thyRadioButton]
7
 */
8
@Component({
9
    // eslint-disable-next-line @angular-eslint/component-selector
10
    selector: '[thy-radio-button],[thyRadioButton]',
1✔
11
    templateUrl: './radio-button.component.html',
12
    host: {
7✔
13
        '[attr.tabindex]': `tabIndex`
7✔
14
    }
7✔
15
})
7✔
16
export class ThyRadioButton extends ThyRadio implements OnInit {
17
    @HostBinding('class.btn') isButton = true;
18
    @HostBinding('class.active') isActive = false;
56✔
19
    @HostBinding('class.disabled') get isDisabled() {
20
        return this._disabled;
21
    }
16✔
22

16✔
23
    name: string;
24

25
    readonly thyValue = input<string>();
7✔
26

7!
27
    set thyChecked(value: boolean) {
7✔
28
        this.isActive = !!value;
7✔
29
        this.writeValue(coerceBooleanProperty(value));
30
    }
31

32
    ngOnInit() {
1!
UNCOV
33
        this._isFormCheck = false;
×
34
        if (this.thyRadioGroupComponent) {
35
            this.thyRadioGroupComponent.addRadio(this);
36
            this.thyRadioGroupComponent.setGroup();
1✔
37
        }
38
    }
39

40
    @HostListener('click', ['$event'])
41
    click($event: MouseEvent) {
42
        if (!this._disabled) {
43
            this.change();
44
        }
1✔
45
    }
46
}
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