text
stringlengths
0
234
Function Body: begin
Assert (SIF.CB_Calls_Count = 0);
declare
package A_S is new SIFLI_Shared_Instance_L.Access_Setter
(Inst_Access => SIFLI_Concrete_1_Instance'Access,
CB => CB);
pragma Unreferenced (A_S);
begin
Assert (SIF.CB_Calls_Count = 1);
Function Definition: procedure Shared_Instance_Creator_L_Null_CB_Test is
Function Body: use Ada.Tags;
use SIFLI_Shared_Instance_L;
begin
Assert (not SIFLI_Shared_Instance_L.Locked);
Assert (not SIFLI_Shared_Instance_L.Instantiated);
Assert (SIFLI_Shared_Instance_L.Instance = null);
Assert (SIF.Lock_Count = 0);
Assert (SIF.Unlock_Count = 0);
declare
package Outer_C is new SIFLI_Shared_Instance_L.Creator
(Allocate => Allocate_SIFLI_Concrete_1_L);
begin
Assert (SIFLI_Shared_Instance_L.Locked);
Assert (SIFLI_Shared_Instance_L.Instantiated);
Assert (SIFLI_Shared_Instance_L.Instance'Tag = SIFLI_Concrete_1'Tag);
Assert (SIFLI_Shared_Instance_L.Instance.Primitive = '1');
Assert (SIF.Lock_Count = 1);
Assert (SIF.Unlock_Count = 0);
Assert (Outer_C.Has_Actually_Created);
declare
package Inner_C is new SIFLI_Shared_Instance_L.Creator
(Allocate => Allocate_SIFLI_Concrete_2_L);
begin
Assert (SIFLI_Shared_Instance_L.Locked);
Assert (SIFLI_Shared_Instance_L.Instantiated);
Assert (SIFLI_Shared_Instance_L.Instance'Tag
=
SIFLI_Concrete_1'Tag);
Assert (SIFLI_Shared_Instance_L.Instance.Primitive = '1');
Assert (SIF.Lock_Count = 1);
Assert (SIF.Unlock_Count = 0);
Assert (Outer_C.Has_Actually_Created);
Assert (not Inner_C.Has_Actually_Created);
Function Definition: procedure Shared_Instance_Creator_L_Null_CB_J_P_Test is
Function Body: use SIFLI_Shared_Instance_L;
begin
Assert (not SIFLI_Shared_Instance_L.Locked);
Assert (not SIFLI_Shared_Instance_L.Instantiated);
Assert (SIFLI_Shared_Instance_L.Instance = null);
Assert (SIF.Lock_Count = 0);
Assert (SIF.Unlock_Count = 0);
declare
package Outer_C is new SIFLI_Shared_Instance_L.Creator
(Allocate => Allocate_SIFLI_Concrete_1_L,
Just_Pretend => True);
begin
Assert (SIFLI_Shared_Instance_L.Locked);
Assert (not SIFLI_Shared_Instance_L.Instantiated);
Assert (SIFLI_Shared_Instance_L.Instance = null);
Assert (SIF.Lock_Count = 1);
Assert (SIF.Unlock_Count = 0);
Assert (Outer_C.Has_Actually_Created);
declare
package Inner_C is new SIFLI_Shared_Instance_L.Creator
(Allocate => Allocate_SIFLI_Concrete_2_L);
begin
Assert (SIFLI_Shared_Instance_L.Locked);
Assert (not SIFLI_Shared_Instance_L.Instantiated);
Assert (SIFLI_Shared_Instance_L.Instance = null);
Assert (SIF.Lock_Count = 1);
Assert (SIF.Unlock_Count = 0);
Assert (Outer_C.Has_Actually_Created);
Assert (not Inner_C.Has_Actually_Created);
Function Definition: procedure Shared_Instance_Creator_U_Null_CB_Test is
Function Body: use Ada.Tags;
use SIFLI_Shared_Instance_U;
begin
Assert (not SIFLI_Shared_Instance_U.Locked);
Assert (not SIFLI_Shared_Instance_U.Instantiated);
Assert (SIFLI_Shared_Instance_U.Instance = null);
Assert (SIF.Lock_Count = 0);
Assert (SIF.Unlock_Count = 0);
declare
package Outer_C is new SIFLI_Shared_Instance_U.Creator