MCPcopy
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
16class 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
25class TestTranslator(unittest.TestCase):

Callers 2

test_cacheMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_cacheMethod · 0.68