travis-ci
12710 of 12943 relevant lines covered (98.2%)
1.44 hits per line
1 |
# -*- coding: utf-8 -*-
|
|
2 |
import os |
6 all except TOX_ENV=文本整合試驗, TOX_ENV=國教院整合試驗, and TOX_ENV=flake8 ✔ |
3 |
|
|
4 |
|
|
5 |
class 外部程式: |
6 all except TOX_ENV=文本整合試驗, TOX_ENV=國教院整合試驗, and TOX_ENV=flake8 ✔ |
6 |
@classmethod
|
6 all except TOX_ENV=文本整合試驗, TOX_ENV=國教院整合試驗, and TOX_ENV=flake8 ✔ |
7 |
def 目錄(cls): |
|
8 |
程式所在 = os.path.abspath(__file__) |
6 all except TOX_ENV=文本整合試驗, TOX_ENV=國教院整合試驗, and TOX_ENV=flake8 ✔ |
9 |
while os.path.basename(程式所在) != '臺灣言語工具': |
6 all except TOX_ENV=文本整合試驗, TOX_ENV=國教院整合試驗, and TOX_ENV=flake8 ✔ |
10 |
程式所在 = os.path.dirname(程式所在) |
6 all except TOX_ENV=文本整合試驗, TOX_ENV=國教院整合試驗, and TOX_ENV=flake8 ✔ |
11 |
程式所在 = os.path.dirname(程式所在) |
6 all except TOX_ENV=文本整合試驗, TOX_ENV=國教院整合試驗, and TOX_ENV=flake8 ✔ |
12 |
return os.path.join(程式所在, '外部程式') |
6 all except TOX_ENV=文本整合試驗, TOX_ENV=國教院整合試驗, and TOX_ENV=flake8 ✔ |