MCPcopy Index your code
hub / github.com/numpy/numpy / test_ducktyping

Function test_ducktyping

numpy/lib/tests/test_io.py:2608–2619  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2606
2607
2608def test_ducktyping():
2609 a = np.random.random((5, 5))
2610
2611 s = BytesIO()
2612 f = JustWriter(s)
2613
2614 np.save(f, a)
2615 f.flush()
2616 s.seek(0)
2617
2618 f = JustReader(s)
2619 assert_array_equal(np.load(f), a)
2620
2621
2622def test_gzip_loadtxt():

Callers

nothing calls this directly

Calls 6

assert_array_equalFunction · 0.90
JustWriterClass · 0.85
JustReaderClass · 0.85
randomMethod · 0.80
seekMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…