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

atinc / ngx-tethys / 0bbb2cec-209e-4d8a-b1b3-6bc54e05daa6

04 Sep 2023 08:40AM UTC coverage: 15.616% (-74.6%) from 90.2%
0bbb2cec-209e-4d8a-b1b3-6bc54e05daa6

Pull #2829

circleci

cmm-va
fix: add test
Pull Request #2829: fix: add tabIndex

300 of 6386 branches covered (0.0%)

Branch coverage included in aggregate %.

78 of 78 new or added lines in 26 files covered. (100.0%)

2849 of 13779 relevant lines covered (20.68%)

83.41 hits per line

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

37.5
/src/image/image-group.component.ts
1
import { ChangeDetectionStrategy, Component, ViewEncapsulation, Injector, ElementRef } from '@angular/core';
2
import { ThyImageDirective } from './image.directive';
3

4
/**
5
 * 图片分组,提供 thyImageGroup 指令和 thy-image-group 标签两种使用方式
6
 * @name thy-image-group,[thyImageGroup]
7
 */
1✔
8
@Component({
9
    selector: 'thy-image-group, [thyImageGroup]',
×
10
    template: '<ng-content></ng-content>',
×
11
    changeDetection: ChangeDetectionStrategy.OnPush,
×
12
    encapsulation: ViewEncapsulation.None,
13
    standalone: true
14
})
×
15
export class ThyImageGroupComponent {
16
    constructor(public injector: Injector, public element: ElementRef) {}
17

×
18
    images: ThyImageDirective[] = [];
19

1✔
20
    addImage(image: ThyImageDirective, index: number): void {
21
        this.images.splice(index, 0, image);
22
    }
23

24
    removeImage(index: number) {
1✔
25
        this.images.splice(index, 1);
26
    }
27
}
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