AUnit.Test_Cases

More...

Entities

Access types

Routine_Access
Test_Case_Access
Test_Routine

Record types

Routine_Spec

Tagged types

Test_Case

Subprograms

Add_Routine

Dispatching subprograms

Register_Tests
Routine_Name
Run
Run_Test
Set_Up_Case
Tear_Down_Case

Generic instantiations

Failure_Lists (generic instantiation)
Routine_Lists (generic instantiation)

Nested packages

Registration
Specific_Test_Case_Registration

Description

Routine_Access [source]

106 type Routine_Access is access all Routine_Spec;

Test routine description

Test_Case_Access [source]

43 type Test_Case_Access is access all Test_Case'Class;

Test_Routine [source]

45 procedure (Test : in out Test_Case'Class);

Routine_Spec [source]

47 type Routine_Spec is record
48 Routine : Test_Routine;
49 Routine_Name : Message_String;
50 end record;
Routine of type AUnit.Test_Cases.Test_Routine
Routine_Name of type AUnit.Message_String

Test_Case [source]

41 type Test_Case is abstract new AUnit.Simple_Test_Cases.Test_Case with
42 private;

Inherits Test_Case

Inherited by Specific_Test_Case

Add_Routine [source]

52 procedure Add_Routine (T : in out Test_Case'Class; Val : Routine_Spec);
T of type AUnit.Test_Cases.Test_Case
Val of type AUnit.Test_Cases.Routine_Spec

Register_Tests [source]

54 procedure Register_Tests (Test : in out Test_Case) is abstract;

Register test methods with test suite

Test of type AUnit.Test_Cases.Test_Case

Routine_Name [source]

101 function Routine_Name (Test : Test_Case) return Message_String;

Routine name. Returns the routine under test. Do not override.

Test of type AUnit.Test_Cases.Test_Case
Return value

Run [source]

91 procedure Run
92 (Test : access Test_Case;
93 Options : AUnit.Options.AUnit_Options;
94 R : in out Result'Class;
95 Outcome : out Status);

Run test case. Do not override.

Test of type
Options of type AUnit.Options.AUnit_Options
R of type AUnit.Test_Results.Result
Outcome of type AUnit.Status

Run_Test [source]

98 procedure Run_Test (Test : in out Test_Case);

Perform the current test procedure. Do not override.

Test of type AUnit.Test_Cases.Test_Case

Set_Up_Case [source]

57 procedure Set_Up_Case (Test : in out Test_Case);

Set up performed before each test case (set of test routines)

Test of type AUnit.Test_Cases.Test_Case

Tear_Down_Case [source]

60 procedure Tear_Down_Case (Test : in out Test_Case);

Tear down performed after each test case

Test of type AUnit.Test_Cases.Test_Case

Failure_Lists (generic instantiation) [source]

112package Failure_Lists is
113 new Ada_Containers.AUnit_Lists (Message_String);

Container for failed assertion messages per routine

Instantiation of Ada_Containers.AUnit_Lists

Routine_Lists (generic instantiation) [source]

109package Routine_Lists is new Ada_Containers.AUnit_Lists (Routine_Spec);

Container for test routines

Instantiation of Ada_Containers.AUnit_Lists