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

atinc / ngx-tethys / #55

30 Jul 2025 07:08AM UTC coverage: 9.866% (-80.4%) from 90.297%
#55

push

why520crazy
feat(empty): add setMessage for update display text #TINFR-2616

92 of 6794 branches covered (1.35%)

Branch coverage included in aggregate %.

2014 of 14552 relevant lines covered (13.84%)

6.15 hits per line

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

50.0
/src/form/validator/max-validator.directive.ts
1
import { Directive, Input, forwardRef } from '@angular/core';
2
import { Validator, AbstractControl, NG_VALIDATORS, Validators, ValidatorFn } from '@angular/forms';
3

4
/**
5
 * @name max
6
 * @order 30
7
 */
8
@Directive({
1✔
9
    // eslint-disable-next-line @angular-eslint/directive-selector
10
    selector: '[max][formControlName],[max][formControl],[max][ngModel]',
×
11
    providers: [
12
        {
13
            provide: NG_VALIDATORS,
×
14
            useExisting: forwardRef(() => ThyMaxDirective),
15
            multi: true
1✔
16
        }
17
    ]
18
})
19
export class ThyMaxDirective implements Validator {
1✔
20
    private _validator: ValidatorFn;
21
    @Input() public set max(value: string) {
22
        this._validator = Validators.max(parseFloat(value));
23
    }
24

25
    public validate(control: AbstractControl): { [key: string]: any } {
26
        return this._validator(control);
×
27
    }
28
}
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