travisci
17357 of 19564 relevant lines covered (88.72%)
4.7 hits per line
UNCOV
1

from pymc3.memoize import memoize 
3× 
2  
3  
UNCOV
4

def getmemo(): 
3× 
UNCOV
5

@memoize

3× 
UNCOV
6

def f(a, b=('a')): 
3× 
UNCOV
7

return str(a) + str(b) 
3× 
UNCOV
8

return f

3× 
9  
10  
UNCOV
11

def test_memo(): 
3× 
UNCOV
12

f = getmemo() 
3× 
13  
UNCOV
14

assert f('x', ['y', 'z']) == "x['y', 'z']" 
3× 
UNCOV
15

assert f('x', ['a', 'z']) == "x['a', 'z']" 
3× 
UNCOV
16

assert f('x', ['y', 'z']) == "x['y', 'z']" 
3× 