MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / test_decode

Function test_decode

tests/model_executor/test_ernie_tokenizer.py:111–116  ·  view source on GitHub ↗

Test decode method - core functionality

(tokenizer, mock_sp_model)

Source from the content-addressed store, hash-verified

109
110
111def test_decode(tokenizer, mock_sp_model):
112 """Test decode method - core functionality"""
113 result = tokenizer.decode([1, 2, 3])
114
115 assert result == "Hello World"
116 mock_sp_model.decode.assert_called_once_with([1, 2, 3])
117
118
119def test_get_vocab(tokenizer, mock_sp_model):

Callers

nothing calls this directly

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected