Skip to main content Link Search Menu Expand Document (external link)

TestAnnotation overview

Added in v2.0.0


Table of contents


utils

TestAnnotation (interface)

Signature

export interface TestAnnotation<in out A> extends Equal.Equal {
  readonly [TestAnnotationTypeId]: {
    readonly _A: Types.Invariant<A>
  }
  readonly identifier: string
  readonly initial: A
  combine(a: A, b: A): A
}

Added in v2.0.0

TestAnnotationTypeId

Signature

export declare const TestAnnotationTypeId: typeof TestAnnotationTypeId

Added in v2.0.0

TestAnnotationTypeId (type alias)

Signature

export type TestAnnotationTypeId = typeof TestAnnotationTypeId

Added in v2.0.0

compose

Signature

export declare const compose: <A>(
  left: Either.Either<Chunk.Chunk<A>, number>,
  right: Either.Either<Chunk.Chunk<A>, number>
) => Either.Either<Chunk.Chunk<A>, number>

Added in v2.0.0

fibers

Signature

export declare const fibers: TestAnnotation<
  Either.Either<Chunk.Chunk<MutableRef.MutableRef<SortedSet.SortedSet<Fiber.RuntimeFiber<unknown, unknown>>>>, number>
>

Added in v2.0.0

ignored

An annotation which counts ignored tests.

Signature

export declare const ignored: TestAnnotation<number>

Added in v2.0.0

isTestAnnotation

Signature

export declare const isTestAnnotation: (u: unknown) => u is TestAnnotation<unknown>

Added in v2.0.0

make

Signature

export declare const make: <A>(identifier: string, initial: A, combine: (a: A, b: A) => A) => TestAnnotation<A>

Added in v2.0.0

repeated

An annotation which counts repeated tests.

Signature

export declare const repeated: TestAnnotation<number>

Added in v2.0.0

retried

An annotation which counts retried tests.

Signature

export declare const retried: TestAnnotation<number>

Added in v2.0.0

tagged

An annotation which tags tests with strings.

Signature

export declare const tagged: TestAnnotation<HashSet.HashSet<string>>

Added in v2.0.0