travis-ci
3153 of 12049 relevant lines covered (26.17%)
0.85 hits per line
1 |
# -*- coding: utf-8 -*-
|
|
2 |
from 臺灣言語工具.解析整理.程式掠漏 import 程式掠漏 |
6 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
3 |
from 臺灣言語工具.解析整理.解析錯誤 import 解析錯誤 |
6 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
4 |
from 臺灣言語工具.基本物件.詞 import 詞 |
6 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
5 |
from 臺灣言語工具.基本物件.字 import 字 |
6 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
6 |
|
|
7 |
|
|
8 |
class 詞物件網仔: |
6 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
9 |
|
|
10 |
@classmethod
|
6 all except TOX_ENV=HTK整合試驗 and TOX_ENV=HTK整合試驗 ✔ |
11 |
def 網出詞物件(cls, 物件): |
|
12 |
try:
|
2 only TOX_ENV=Moses整合試驗 and TOX_ENV=Moses整合試驗 ✔ |
13 |
return 物件.網出詞物件()
|
2 only TOX_ENV=Moses整合試驗 and TOX_ENV=Moses整合試驗 ✔ |
14 |
except 解析錯誤:
|
× |
15 |
if isinstance(物件, 字): |
× |
16 |
詞物件 = 詞() |
× |
17 |
詞物件.內底字 = [物件] |
× |
18 |
return [詞物件]
|
× |
19 |
raise
|
× |
20 |
except AttributeError: |
× |
21 |
程式掠漏.毋是字詞組集句章的毋著(物件) |
× |