Summary
public struct Summary : Codable, HashableA Summary is a wrapper struct that represents the result of comparing two instances of a provider.
- 
                  
                  Creates a Summary.DeclarationSwift public init(text: String, style: Style, numericValue: Float, stringValue: String)ParameterstextThe description of this summary. styleThe sentimental result of this summary. See Summary.Stylefor more information.numericValueThe numeric value that represents this summary, to be used in tools like SwiftInfo-Reader. For example, if a build increased the number of tests by 3, numericValueshould be 3.stringValueThe string value that represents this summary. For example, if a build increased the number of tests by 3, stringValuecan be either 3 or ‘Three’. This is used only for visual purposes.
- 
                  
                  Creates a basic Summarythat differs depending if a provider’s value increased, decreased or stayed the same. Here’s an example: Build Time: Increased by 3 (100 seconds)DeclarationSwift public static func genericFor<T: BinaryInteger & SignedNumeric>( prefix: String, now: T, old: T?, increaseIsBad: Bool, stringValueFormatter: ((T) -> String)? = nil, numericValueFormatter: ((T) -> Float)? = nil, difference: ((T, T) -> T)? = nil ) -> SummaryParametersprefixThe prefix of the message. Ideally, this should be the description of your provider. nowThe current numeric value of the provider. oldThe previous numeric value of the provider. increaseIsBadIf set to true, increases in value will use the .negativeSummary.Style.stringValueFormatter(Optional) The closure that translates the numeric value to a visual string. By default, the behavior is to simply cast the number to a String. numericValueFormatter(Optional) The closure that translates the numeric value to a Float. Float is the type used by reader tools like SwiftInfo-Reader, and by default, the behavior is to simply convert the number to a Float. difference(Optional) The closure that shows how to calculate the numerical difference between the providers. The first argument is the new value, and the second is the old one. By default, this closure is { abs(old - new) }. 
 Summary Structure Reference
        Summary Structure Reference