Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/PDFMathTranslate/PDFMathTranslate
/ AutoIncreaseTranslator
Class
AutoIncreaseTranslator
test/test_translator.py:16–22 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
14
15
16
class
AutoIncreaseTranslator(BaseTranslator):
17
name =
"auto_increase"
18
n = 0
19
20
def
do_translate(self, text):
21
self.n += 1
22
return
str(self.n)
23
24
25
class
TestTranslator(unittest.TestCase):
Callers
2
test_cache
Method · 0.85
test_add_cache_impact_parameters
Method · 0.85
Calls
no outgoing calls
Tested by
2
test_cache
Method · 0.68
test_add_cache_impact_parameters
Method · 0.68