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

atinc / ngx-tethys / 2c17752c-a120-4d08-b03c-7ff08eddc062

19 Nov 2024 07:40AM UTC coverage: 90.366%. Remained the same
2c17752c-a120-4d08-b03c-7ff08eddc062

Pull #3258

circleci

minlovehua
refactor: remove useless import #TINFR-1017
Pull Request #3258: refactor: remove useless import #TINFR-1017

5524 of 6762 branches covered (81.69%)

Branch coverage included in aggregate %.

13218 of 13978 relevant lines covered (94.56%)

995.57 hits per line

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

84.21
/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
1✔
10
    selector: '[thy-radio-button],[thyRadioButton]',
11
    templateUrl: './radio-button.component.html',
7✔
12
    standalone: true,
7✔
13
    host: {
7✔
14
        '[attr.tabindex]': `tabIndex`
15
    }
16
})
56✔
17
export class ThyRadioButton extends ThyRadio implements OnInit {
18
    @HostBinding('class.btn') isButton = true;
19
    @HostBinding('class.active') isActive = false;
16✔
20
    @HostBinding('class.disabled') get isDisabled() {
16✔
21
        return this._disabled;
22
    }
23

7✔
24
    name: string;
7!
25

7✔
26
    @Input() thyValue: string;
7✔
27

28
    set thyChecked(value: boolean) {
29
        this.isActive = !!value;
30
        this.writeValue(coerceBooleanProperty(value));
1!
31
    }
×
32

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

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