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

henryruhs / rxjs-collection / 4122723945

pending completion
4122723945

push

github

henryruhs
Remove conditions from tests

23 of 25 branches covered (92.0%)

Branch coverage included in aggregate %.

179 of 194 relevant lines covered (92.27%)

3.73 hits per line

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

90.91
/src/reactive-map.class.ts
1
import { Observable, Subject, Subscription } from 'rxjs';
1✔
2
import { reactive } from './reactive.helper';
1✔
3
import { ReactiveCollection } from './reactive.interface';
1✔
4

1✔
5
export class ReactiveMap<Key, Value> extends Map<Key, Value> implements ReactiveCollection<Map<Key, Value>>
5✔
6
{
5✔
7
        protected store : Subject<Map<Key, Value>> = new Subject<Map<Key, Value>>();
5✔
8

5✔
9
        asObservable() : Observable<Map<Key, Value>>
5✔
10
        {
4✔
11
                return this.store.asObservable();
4✔
12
        }
4✔
13

5✔
14
        subscribe(next : (value : Map<Key, Value>) => void) : Subscription
5✔
15
        {
×
16
                return this.store.subscribe(next);
×
17
        }
×
18

5✔
19
        unsubscribe() : void
5✔
20
        {
1✔
21
                this.store.complete();
1✔
22
        }
1✔
23
}
5✔
24

1✔
25
reactive(ReactiveMap, Map,
1✔
26
[
1✔
27
        'set',
1✔
28
        'delete',
1✔
29
        'clear'
1✔
30
]);
1✔
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