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