File / Directory |
Mutation score |
# Killed |
# Survived |
# Timeout |
# No coverage |
# Runtime errors |
# Transpile errors |
Total detected |
Total undetected |
Total mutants | |
---|---|---|---|---|---|---|---|---|---|---|---|
tunnel.decorator.ts | 100.00 | 8 | 0 | 0 | 0 | 1 | 0 | 8 | 0 | 9 |
import {Subject} from "rxjs";
const stream = new Subject<any>();
export function Tunnel(): PropertyDecorator 0{}{
return (prototype: { ngOnInit(): void }, key: string): void => 1{}{
const ngOnInit = prototype.ngOnInit;
const tunnel = 2{}{
emit: (obj: any) => 3{}{
stream.next(obj);
},
stream$: stream.asObservable(),
};
4false5trueprototype.ngOnInit = function(): void 6{}{
7false8truethis[key] = tunnel;
ngOnInit.call(this);
};
};
}
# | Mutator | State | Location | Original | Replacement |
---|---|---|---|---|---|
0 | Block | RuntimeError | 4 : 44 | {
... };
} |
{} |
1 | Block | Killed | 5 : 67 | {
... } |
{} |
2 | ObjectLiteral | Killed | 7 : 23 | {
... } |
{} |
3 | Block | Killed | 8 : 32 | {
... } |
{} |
4 | ConditionalExpression | Killed | 14 : 8 | . ... } |
|
5 | ConditionalExpression | Killed | 14 : 8 | . ... } |
|
6 | Block | Killed | 14 : 46 | {
... } |
{} |
7 | ConditionalExpression | Killed | 15 : 12 | [ ] = |
|
8 | ConditionalExpression | Killed | 15 : 12 | [ ] = |
|