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

[wip]Kadai2 nagaa052 #22

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

nagaa052
Copy link

#10 の続き

kadai2-1: kadai1 のテストを書いてみる

  • テストのしやすさを考えてリファクタリングしてみる
  • テストのカバレッジを取ってみる
  • テーブル駆動テストを行う
  • テストヘルパーを作ってみる

kadai2-2: io.Readerとio.Writerについて調べる

  • 標準パッケージでどのように使われているか
  • io.Readerとio.Writerがあることで、どういう利点があるのか具体例を挙げて考えてみる

質問

  • テーブル駆動テストを書く際、errが発生する場合のテストは分けて書くべきでしょうか?
    • 同じ構造体を使い回したく、isError フィールドを使って判定していますが、エラーハンドリングが分かりづらくなっています

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.

1 participant