LoginSignup
0
1

More than 1 year has passed since last update.

【メモ】expectationとは?

Posted at

ユニットテストを書く上で、expectation関数がなんなのかわからなかったので、調べたことをメモ。

  • @typedef XCWaitCompletionHandler
    waitForExpectationsWithTimeout:handler: への呼び出しがタイムアウトするか、関連するすべての期待値が満たされたときに呼び出されるブロックです。

  • @param error
    待ち時間がタイムアウトした場合、または待ち時間に失敗が発生した場合、エラーのコードで失敗の種類を指定します。それ以外の場合、error は nil になります。

非同期処理を行う。期待値が入るまで、もしくは指定した時間が過ぎるまで待ってくれる。タイムアウトした場合はエラーになる。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1