File: one_test_case.ads

package info (click to toggle)
libaunit 1.03-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 324 kB
  • ctags: 7
  • sloc: ada: 1,552; makefile: 70
file content (23 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;

with  AUnit.Test_Cases;

--  Test case with one routine.
package One_Test_Case is
   type Test_Case is new AUnit.Test_Cases.Test_Case with private;

   --  Register routines to be run:
   procedure Register_Tests (T : in out Test_Case);

   --  Provide name identifying the test case:
   function Name (T : Test_Case) return String_Access;

private
   --  Test_1 will be inherited in another test case:
   procedure Test_1 (T : in out AUnit.Test_Cases.Test_Case'Class);
   type Test_Case is new AUnit.Test_Cases.Test_Case with record
      Parent_Data : Integer := 0;
   end record;

end One_Test_Case;