StubProduct

public enum StubProduct

[Internal] Possible Given products. Method can either return or throw an error (in general)

  • return: Return value
  • throw: Thrown error value
  • Undocumented

    Declaration

    Swift

    case `return`(Any)
  • Undocumented

    Declaration

    Swift

    case `throw`(Error)
  • [Internal] If self is returns, and nested value can be casted to T, returns value. Can fail (fatalError)

    Throws

    Error if self is throw

    Declaration

    Swift

    public func casted<T>() throws -> T

    Return Value

    Value if self is return