Table of Contents

Class PrintedGenerator<T>

Namespace
Hegel
Assembly
Hegel.dll

A generator printing another's values with a function of your own.

public sealed class PrintedGenerator<T> : PrintableGenerator<T>

Type Parameters

T
Inheritance
PrintedGenerator<T>
Inherited Members

Properties

Label

The span label the engine files this generator's draws under. Defaults to a label derived from the class's full name.

public override ulong Label { get; }

Property Value

ulong

Methods

DoDraw(TestCase)

Draw one value. Called inside a span labelled Label: draw from another generator through DrawSilent<T>(Generator<T>), which opens its span, rather than by calling its hook.

protected override T DoDraw(TestCase tc)

Parameters

tc TestCase

Returns

T

DoDrawAndPrint(TestCase, Printer)

Draw one value, printing it to printer (which may be Noop). Draw its parts through DrawAndPrint<T>(Generator<T>, Printer).

protected override T DoDrawAndPrint(TestCase tc, Printer printer)

Parameters

tc TestCase
printer Printer

Returns

T