File: operations-binary-gen_test.ads

package info (click to toggle)
libaunit 25.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,360 kB
  • sloc: ada: 5,615; python: 243; makefile: 223; sh: 92; xml: 13
file content (34 lines) | stat: -rw-r--r-- 771 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--
--  Copyright (C) 2008, AdaCore
--
with AUnit.Test_Fixtures;

generic

   with procedure Set_Up
     (The_Op    : out Binary_Operation;
      Test_Op1  : out T;
      Test_Op2  : out T;
      Exp_Res   : out T_Ret);

package Operations.Binary.Gen_Test is

   type Test is new AUnit.Test_Fixtures.Test_Fixture with private;

   procedure Set_Up (T : in out Test);
   procedure Tear_Down (T : in out Test);

   procedure Test_Pop (T : in out Test);
   procedure Test_Push (T : in out Test);
   procedure Test_Execute (T : in out Test);

private

   type Test is new AUnit.Test_Fixtures.Test_Fixture with record
      Op : Operations.Binary.Binary_Operation;
      Test_Op1 : T;
      Test_Op2 : T;
      Exp_Res  : T_Ret;
   end record;

end Operations.Binary.Gen_Test;