• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozillazg / python-pinyin / 30

pending completion
30

push

circle-ci

mozillazg
配置使用 CircleCI

275 of 527 relevant lines covered (52.18%)

0.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/pypinyin/style/initials.py
1
# -*- coding: utf-8 -*-
2
"""Style.INITIALS 风格"""
1✔
3
from __future__ import unicode_literals
1✔
4

5
from pypinyin.constants import Style
1✔
6
from pypinyin.style import register
1✔
7
from pypinyin.style._utils import get_initials
1✔
8

9

10
@register(Style.INITIALS)
1✔
11
def convert(pinyin, **kwargs):
12
    strict = kwargs.get('strict')
×
13
    return get_initials(pinyin, strict)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2024 Coveralls, Inc