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

郵便番号で住所データを検索する処理のテスト作成 #35

Draft
wants to merge 11 commits into
base: feature/unit-testing
Choose a base branch
from

Conversation

marumoto-goq
Copy link

@marumoto-goq marumoto-goq commented Apr 26, 2024

変更の内容

郵便番号で住所データを検索する処理のテスト作成

やったこと

  • goqZipCode.tsに取得した郵便番号を元に住所データを返す関数searchMachingZipCodeを作成
  • searchAddressFromZipCode.test.tsに作成したsearchMachingZipCodeを検証するテストケースを作成

作成したテストケース

  • テストケース1:住所のマスタデータ内に入力された郵便番号が存在して、合致する住所のデータを返す
  • テストケース2:住所のマスタデータ内に入力された郵便番号が存在せず、不一致メッセージを返す

テスト対象範囲

テスト対象の範囲としては、index.ts内の処理の162 - 172行目を対象としております。

@marumoto-goq
Copy link
Author

@nagaoka-goq @iwata-goq @mori-goq
郵便番号を元に完全一致で住所データを取得するテストを作成いたしました。
レビューしていただきたいです🙇‍♂️
ご確認お願いいたします。

@marumoto-goq marumoto-goq marked this pull request as draft May 1, 2024 09:06
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

1 participant