travis-ci
12710 of 12943 relevant lines covered (98.2%)
1.44 hits per line
1 |
# -*- coding: utf-8 -*-
|
|
2 |
|
|
3 |
|
|
4 |
class 語句編碼器: |
3 only TOX_ENV=中研院整合試驗, TOX_ENV=Moses整合試驗, and TOX_ENV=單元試驗 ✔ |
5 |
@classmethod
|
3 only TOX_ENV=中研院整合試驗, TOX_ENV=Moses整合試驗, and TOX_ENV=單元試驗 ✔ |
6 |
def 編碼(cls, 語句): |
|
7 |
return 語句.encode('unicode_escape').decode('ascii') |
3 only TOX_ENV=中研院整合試驗, TOX_ENV=Moses整合試驗, and TOX_ENV=單元試驗 ✔ |
8 |
|
|
9 |
@classmethod
|
3 only TOX_ENV=中研院整合試驗, TOX_ENV=Moses整合試驗, and TOX_ENV=單元試驗 ✔ |
10 |
def 解碼(cls, 語句): |
|
11 |
return 語句.encode('ascii').decode('unicode_escape') |
3 only TOX_ENV=中研院整合試驗, TOX_ENV=Moses整合試驗, and TOX_ENV=單元試驗 ✔ |