Percentage | Lines | ||
---|---|---|---|
PromiseFulfilled |
|
83 % | 218 |
PromiseRejected |
|
87 % | 239 |
Promise |
|
90 % | 393 |
PromiseCancelled |
|
92 % | 247 |
CancellationQueue |
|
96 % | 85 |
PromiseTrait |
|
99 % | 337 |
Deferred |
|
100 % | 102 |
CRAP Score | Lines | ||
---|---|---|---|
Promise::getReason() | 12 | 4 | |
PromiseTrait::some() | 11 | 69 | |
Promise::getValue() | 6 | 4 | |
Promise::__construct() | 6 | 20 | |
Promise::cancel() | 5 | 23 | |
CancellationQueue::drain() | 5 | 26 | |
PromiseTrait::map() | 5 | 37 | |
PromiseFulfilled::then() | 4 | 20 | |
PromiseRejected::then() | 4 | 20 | |
PromiseCancelled::done() | 4 | 19 | |