named<T extends Mock> function

  1. @Deprecated('This function does not provide value; hashCode and toString() can be ' 'stubbed individually. This function may be deleted as early as Mockito ' '5.0.0')
T named <T extends Mock>(
  1. T mock,
  2. {String name,
  3. int hashCode}
)

Implementation

@Deprecated(
    'This function does not provide value; hashCode and toString() can be '
    'stubbed individually. This function may be deleted as early as Mockito '
    '5.0.0')
T named<T extends Mock>(T mock, {String name, int hashCode}) => mock
  .._givenName = name
  .._givenHashCode = hashCode;