github
86 of 95 new or added lines in 7 files covered. (90.53%)
98 existing lines in 12 files now uncovered.2530 of 2863 relevant lines covered (88.37%)
3.49 hits per line
|
import functools |
4✔ |
2 |
|
|
3 |
|
|
|
def _not_implemented(function): |
4✔ |
|
@functools.wraps(function)
|
4✔ |
|
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✔ |
|
def abs(_): |
3✔ |
NEW
|
pass
|
× |
19 |
|
|
20 |
|
|
|
@functools.singledispatch
|
4✔ |
|
@_not_implemented
|
4✔ |
|
def allclose(*_): |
3✔ |
NEW
|
pass
|
× |
25 |
|
|
26 |
|
|
|
@functools.singledispatch
|
4✔ |
|
@_not_implemented
|
4✔ |
|
def exp(_): |
3✔ |
NEW
|
pass
|
× |
31 |
|
|
32 |
|
|
|
@functools.singledispatch
|
4✔ |
|
@_not_implemented
|
4✔ |
|
def tensordot(*_): |
3✔ |
NEW
|
pass
|
× |