Skip to content

Conversation

@marshi
Copy link

@marshi marshi commented Jun 27, 2018

よろしくおねがいします

テストヘルパー間に合わなさそうです 🙇

io.Readerとio.Writerについて調べてみよう
(READMEに記載)

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

1回目の宿題のテストを作ってみて下さい

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

return nil, fmt.Errorf("no such directory")
}

type testConvertFile struct {
Copy link
Author

@marshi marshi Jun 27, 2018

Choose a reason for hiding this comment

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

converterFileInterfaceをインタフェースにもつことで、ファイルパスの探索をダミーデータで行えるようにします

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants