MCPcopy Index your code
hub / github.com/pydata/xarray / test_CharacterArrayCoder_encode

Function test_CharacterArrayCoder_encode

xarray/tests/test_coding_strings.py:142–147  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

140 ],
141)
142def test_CharacterArrayCoder_encode(data) -> None:
143 coder = strings.CharacterArrayCoder()
144 raw = Variable(("x",), data)
145 actual = coder.encode(raw)
146 expected = Variable(("x", "string2"), np.array([[b"a", b""], [b"b", b"c"]]))
147 assert_identical(actual, expected)
148
149
150@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

encodeMethod · 0.95
VariableClass · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…