Home
last modified time | relevance | path

Searched refs:sentinel (Results 1 – 3 of 3) sorted by relevance

/tools/acloud/internal/lib/
Dutils_test.py201 def _RaiseAndRetry(sentinel): argument
202 sentinel.alert()
205 sentinel = mock.MagicMock()
206 self.assertRaises(ValueError, _RaiseAndRetry, sentinel)
207 self.assertEqual(1 + num_retry, sentinel.alert.call_count)
212 def _RaiseAndRetry(sentinel): argument
213 sentinel.alert()
217 sentinel = mock.MagicMock()
225 sentinel=sentinel)
226 self.assertEqual(1 + num_retry, sentinel.alert.call_count)
[all …]
Dgcompute_client_test.py1435 def Raise412(sentinel): argument
1437 if not sentinel.hitFingerPrintConflict.called:
1438 sentinel.hitFingerPrintConflict()
1442 sentinel = mock.MagicMock()
1443 result = Raise412(sentinel)
1444 self.assertEqual(1, sentinel.hitFingerPrintConflict.call_count)
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt773 private fun findEnd(source: String, from: Int, to: Int, sentinel: Char): Int { in findEnd()
779 } else if (c == sentinel) { in findEnd()