(meta, dtype)
| 57 | @pytest.mark.parametrize("meta", ["", "str", "", "str", b"", b"str"]) |
| 58 | @pytest.mark.parametrize("dtype", [None, "bool", "int", "float"]) |
| 59 | def test_meta_from_array_literal(meta, dtype): |
| 60 | if dtype is None: |
| 61 | assert meta_from_array(meta, dtype=dtype).dtype.kind in "SU" |
| 62 | else: |
| 63 | assert ( |
| 64 | meta_from_array(meta, dtype=dtype).dtype == np.array([], dtype=dtype).dtype |
| 65 | ) |
| 66 | |
| 67 | |
| 68 | def test_meta_from_array_type_inputs(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…