-
Notifications
You must be signed in to change notification settings - Fork 40
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
API Guidelineに準拠(アッパーキャメルケースをロワーキャメルケースに変更) #76
Conversation
8365b54
to
28c98c9
Compare
weahterViewController = R.storyboard.weather.instantiateInitialViewController()! | ||
weahterViewController.weatherModel = weahterModel | ||
_ = weahterViewController.view | ||
weatherViewController = R.storyboard.weather.instantiateInitialViewController()! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[imo] weatherModelの初期化が明示的にされなくなるので、weatherModelに変更が入った際に各testメソッドで副作用が残らないか確認の必要が生じるため、setUpで初期化した方がよいかと
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
レビューの経過を把握できていないのですけれど、現状では次のコードになっていて、weatherModel の初期化も setUp 内で明示的にされるコードのため、上記の点については解消されている様子が窺えました。
override func setUpWithError() throws {
weatherViewController = R.storyboard.weather.instantiateInitialViewController()!
weatherViewController.weatherModel = weatherModel
weatherViewController.disasterModel = DisasterModelMock()
weatherViewController.loadViewIfNeeded()
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修正していて感じたんですが、やはり日用的に考えると大文字スタートがしっくりくると感じました。 なのでrawValueをアッパーキャメルケースにするのが一番良いのかなと思ったので、それで実装してみます👀
この辺りも少し考えてみます! |
…統一感を持たせるために、こちらも大文字から始まる名称を想定するテストコードにしました(実装上、どちらでも失敗しません ≒ 原稿の仕様を維持?)。
0e7d0d3
to
1e21797
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…al-indentation 複数行の文字列リテラルのインデントが周囲と乖離しないようにしました。
変更点
レビュー観点