TestPoint

public struct TestPoint: AutoEquatable

Test Points represent the result of one single assertion.

  • Creates a Test Point with the given options.

    Parameter

    Parameter isOk: Indicates wether the point succeeded.

    Parameter

    Parameter message: An optional message that will be printed.

    Parameter

    Parameter details: A Yaml of details to be displayed.

    Declaration

    Swift

    public init(
        isOk: Bool,
        message: String?,
        source location: SourceLocation,
        details: [String: Yaml]? = nil
      )

    Parameters

    isOk

    Indicates wether the point succeeded.

    message

    An optional message that will be printed.

    details

    A Yaml of details to be displayed.