travis-ci
12911 of 13174 relevant lines covered (98.0%)
1.47 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=中研院整合試驗 ✔ |