mockStruct

Version of mockStruct that accepts 0 or more values of the same type. Whatever function is called on it, these values will be returned one by one. The limitation is that if more than one function is called on the mock, they all return the same type

  1. auto mockStruct(T returns)
    mockStruct
    (
    T...
    )
    (
    auto ref T returns
    )
    if (
    !from!"std.meta".anySatisfy!(isMockReturn, T)
    )
  2. auto mockStruct()
  3. auto mockStruct(R returns)

Meta