Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CShareDataのテストを追加する #1801

Merged

Conversation

berryzplus
Copy link
Contributor

@berryzplus berryzplus commented Feb 14, 2022

PR の目的

テストカバレッジを向上させます。

カテゴリ

  • その他の問題

PR の背景

サクラエディタは日本語アプリです。
日本語アプリですが、UIを英語で表示する機能を持っています。
この状況は、たいへん紛らわしいので国際化したいと考えています。
#1782

プログラムの国際化に向けて、修正が必要なコードのテストカバレッジをあげたいです。

PR のメリット

PR のデメリット (トレードオフとかあれば)

仕様・動作説明

アプリの仕様・機能は変更しません。

言語変更時に共有メモリに保持しているローカライズ文字列を書き換える処理に対してテストを追加します。
この機構は、言語変更時に必要な処理を呼び忘れるリスクがあるので、国際化対応を騙るためには排除する必要があると考えています。排除する前に「ちゃんと動いてんだぜ?」を示すためにテストを導入しますい。

PR の影響範囲

テストコードを追加するのみなので、本体への影響はありません。

テスト内容

テスト1

手順

関連 issue, PR

#1782

参考資料

言語切り替え時の共有データ書換についてのテストが薄いのでケースを追加する
@sonarcloud
Copy link

sonarcloud bot commented Feb 14, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@AppVeyorBot
Copy link

Copy link
Member

@kengoide kengoide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

とりあえず動かしてみるテストということで承知しました。

@berryzplus
Copy link
Contributor Author

レビューありがとうございます。マージしちゃいます。

@berryzplus berryzplus merged commit bdae441 into sakura-editor:master Feb 14, 2022
@berryzplus berryzplus deleted the feature/add_test_of_CShareData branch February 14, 2022 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants