github
33 of 41 new or added lines in 4 files covered. (80.49%)
94 existing lines in 12 files now uncovered.2293 of 2620 relevant lines covered (87.52%)
3.49 hits per line
|
import functools |
4✔ |
2 |
|
|
3 |
|
|
|
def _not_implemented(function): |
4✔ |
|
@functools.wraps(function)
|
4✔ |
6 |
def inner(*arguments): |
3✔ |
NEW
|
raise TypeError( |
× |
8 |
f"Function '{function.__name__}' not implemented for arguments of "
|
|
9 |
f"type '{type(arguments[0])}'"
|
|
10 |
) |
|
11 |
|
|
|
return inner
|
4✔ |
13 |
|
|
14 |
|
|
|
@functools.singledispatch
|
4✔ |
|
@_not_implemented
|
4✔ |
17 |
def abs(_): |
3✔ |
NEW
|
pass
|
× |
19 |
|
|
20 |
|
|
|
@functools.singledispatch
|
4✔ |
|
@_not_implemented
|
4✔ |
23 |
def allclose(*_): |
3✔ |
NEW
|
pass
|
× |
25 |
|
|
26 |
|
|
|
@functools.singledispatch
|
4✔ |
|
@_not_implemented
|
4✔ |
29 |
def exp(_): |
3✔ |
NEW
|
pass
|
× |
31 |
|
|
32 |
|
|
|
@functools.singledispatch
|
4✔ |
|
@_not_implemented
|
4✔ |
35 |
def tensordot(*_): |
3✔ |
NEW
|
pass
|
× |