-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'instrument_expr_func' into 'master'
Add instrumentation for expression functions Closes #143 See merge request eng/ide/libadalang-tools!180
- Loading branch information
Showing
14 changed files
with
948 additions
and
35 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...sts/test/instrument_expr_func/gnattest/tests/p-test_data-tests-n2-n23-test_data-tests.adb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
-- This package has been generated automatically by GNATtest. | ||
-- You are allowed to add your code to the bodies of test routines. | ||
-- Such changes will be kept during further regeneration of this file. | ||
-- All code placed outside of test routine bodies will be lost. The | ||
-- code intended to set up and tear down the test environment should be | ||
-- placed into P.Test_Data.Tests.N2.N23.Test_Data. | ||
|
||
with AUnit.Assertions; use AUnit.Assertions; | ||
with System.Assertions; | ||
|
||
-- begin read only | ||
-- id:2.2/00/ | ||
-- | ||
-- This section can be used to add with clauses if necessary. | ||
-- | ||
-- end read only | ||
|
||
-- begin read only | ||
-- end read only | ||
package body P.Test_Data.Tests.N2.N23.Test_Data.Tests is | ||
|
||
-- begin read only | ||
-- id:2.2/01/ | ||
-- | ||
-- This section can be used to add global variables and other elements. | ||
-- | ||
-- end read only | ||
|
||
-- begin read only | ||
-- end read only | ||
|
||
-- begin read only | ||
procedure Test_Expr_Nested_no_package_Body_2 (Gnattest_T : in out Test); | ||
procedure Test_Expr_Nested_no_package_Body_2_66da08 (Gnattest_T : in out Test) renames Test_Expr_Nested_no_package_Body_2; | ||
-- id:2.2/66da0802ea936761/Expr_Nested_no_package_Body_2/1/0/ | ||
procedure Test_Expr_Nested_no_package_Body_2 (Gnattest_T : in out Test) is | ||
-- p.ads:23:10:Expr_Nested_no_package_Body_2 | ||
-- end read only | ||
|
||
pragma Unreferenced (Gnattest_T); | ||
|
||
begin | ||
|
||
AUnit.Assertions.Assert | ||
(P.N2.N23.Expr_Nested_no_package_Body_2 (997) = 1000, | ||
"worng Expr_Nested_no_package_Body"); | ||
|
||
-- begin read only | ||
end Test_Expr_Nested_no_package_Body_2; | ||
-- end read only | ||
|
||
-- begin read only | ||
-- id:2.2/02/ | ||
-- | ||
-- This section can be used to add elaboration code for the global state. | ||
-- | ||
begin | ||
-- end read only | ||
null; | ||
-- begin read only | ||
-- end read only | ||
end P.Test_Data.Tests.N2.N23.Test_Data.Tests; |
104 changes: 104 additions & 0 deletions
104
testsuite/tests/test/instrument_expr_func/gnattest/tests/p-test_data-tests.adb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
-- This package has been generated automatically by GNATtest. | ||
-- You are allowed to add your code to the bodies of test routines. | ||
-- Such changes will be kept during further regeneration of this file. | ||
-- All code placed outside of test routine bodies will be lost. The | ||
-- code intended to set up and tear down the test environment should be | ||
-- placed into P.Test_Data. | ||
|
||
with AUnit.Assertions; use AUnit.Assertions; | ||
with System.Assertions; | ||
|
||
-- begin read only | ||
-- id:2.2/00/ | ||
-- | ||
-- This section can be used to add with clauses if necessary. | ||
-- | ||
-- end read only | ||
|
||
-- begin read only | ||
-- end read only | ||
package body P.Test_Data.Tests is | ||
|
||
-- begin read only | ||
-- id:2.2/01/ | ||
-- | ||
-- This section can be used to add global variables and other elements. | ||
-- | ||
-- end read only | ||
|
||
-- begin read only | ||
-- end read only | ||
|
||
-- begin read only | ||
procedure Test_Expr (Gnattest_T : in out Test); | ||
procedure Test_Expr_617926 (Gnattest_T : in out Test) renames Test_Expr; | ||
-- id:2.2/6179266ae349cdc0/Expr/1/0/ | ||
procedure Test_Expr (Gnattest_T : in out Test) is | ||
-- p.ads:3:4:Expr | ||
-- end read only | ||
|
||
pragma Unreferenced (Gnattest_T); | ||
|
||
begin | ||
|
||
AUnit.Assertions.Assert | ||
(Expr (100) = 1000, | ||
"wrong expr"); | ||
|
||
-- begin read only | ||
end Test_Expr; | ||
-- end read only | ||
|
||
|
||
-- begin read only | ||
procedure Test_Expr_Private_Body (Gnattest_T : in out Test); | ||
procedure Test_Expr_Private_Body_30624e (Gnattest_T : in out Test) renames Test_Expr_Private_Body; | ||
-- id:2.2/30624e53e675d71b/Expr_Private_Body/1/0/ | ||
procedure Test_Expr_Private_Body (Gnattest_T : in out Test) is | ||
-- p.ads:6:4:Expr_Private_Body | ||
-- end read only | ||
|
||
pragma Unreferenced (Gnattest_T); | ||
|
||
begin | ||
|
||
AUnit.Assertions.Assert | ||
(Expr_Private_Body (107) = 104, | ||
"wrong expr2"); | ||
|
||
-- begin read only | ||
end Test_Expr_Private_Body; | ||
-- end read only | ||
|
||
|
||
-- begin read only | ||
procedure Test_Package_Needs_Body (Gnattest_T : in out Test); | ||
procedure Test_Package_Needs_Body_1c64ee (Gnattest_T : in out Test) renames Test_Package_Needs_Body; | ||
-- id:2.2/1c64eefbe84ddedf/Package_Needs_Body/1/0/ | ||
procedure Test_Package_Needs_Body (Gnattest_T : in out Test) is | ||
-- p.ads:8:4:Package_Needs_Body | ||
-- end read only | ||
|
||
pragma Unreferenced (Gnattest_T); | ||
|
||
begin | ||
|
||
AUnit.Assertions.Assert | ||
(True, | ||
"Test not implemented."); | ||
|
||
-- begin read only | ||
end Test_Package_Needs_Body; | ||
-- end read only | ||
|
||
-- begin read only | ||
-- id:2.2/02/ | ||
-- | ||
-- This section can be used to add elaboration code for the global state. | ||
-- | ||
begin | ||
-- end read only | ||
null; | ||
-- begin read only | ||
-- end read only | ||
end P.Test_Data.Tests; |
62 changes: 62 additions & 0 deletions
62
...ment_expr_func/gnattest/tests/q-test_data-tests-nesting_2-nesting_2_1-test_data-tests.adb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
-- This package has been generated automatically by GNATtest. | ||
-- You are allowed to add your code to the bodies of test routines. | ||
-- Such changes will be kept during further regeneration of this file. | ||
-- All code placed outside of test routine bodies will be lost. The | ||
-- code intended to set up and tear down the test environment should be | ||
-- placed into Q.Test_Data.Tests.Nesting_2.Nesting_2_1.Test_Data. | ||
|
||
with AUnit.Assertions; use AUnit.Assertions; | ||
with System.Assertions; | ||
|
||
-- begin read only | ||
-- id:2.2/00/ | ||
-- | ||
-- This section can be used to add with clauses if necessary. | ||
-- | ||
-- end read only | ||
|
||
-- begin read only | ||
-- end read only | ||
package body Q.Test_Data.Tests.Nesting_2.Nesting_2_1.Test_Data.Tests is | ||
|
||
-- begin read only | ||
-- id:2.2/01/ | ||
-- | ||
-- This section can be used to add global variables and other elements. | ||
-- | ||
-- end read only | ||
|
||
-- begin read only | ||
-- end read only | ||
|
||
-- begin read only | ||
procedure Test_F5 (Gnattest_T : in out Test); | ||
procedure Test_F5_354a5c (Gnattest_T : in out Test) renames Test_F5; | ||
-- id:2.2/354a5c8e2ee02230/F5/1/0/ | ||
procedure Test_F5 (Gnattest_T : in out Test) is | ||
-- q.ads:10:10:F5 | ||
-- end read only | ||
|
||
pragma Unreferenced (Gnattest_T); | ||
|
||
begin | ||
|
||
AUnit.Assertions.Assert | ||
(Q.Nesting_2.Nesting_2_1.F5 (111) = 777, | ||
"wrong F5"); | ||
|
||
-- begin read only | ||
end Test_F5; | ||
-- end read only | ||
|
||
-- begin read only | ||
-- id:2.2/02/ | ||
-- | ||
-- This section can be used to add elaboration code for the global state. | ||
-- | ||
begin | ||
-- end read only | ||
null; | ||
-- begin read only | ||
-- end read only | ||
end Q.Test_Data.Tests.Nesting_2.Nesting_2_1.Test_Data.Tests; |
62 changes: 62 additions & 0 deletions
62
testsuite/tests/test/instrument_expr_func/gnattest/tests/q-test_data-tests.adb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
-- This package has been generated automatically by GNATtest. | ||
-- You are allowed to add your code to the bodies of test routines. | ||
-- Such changes will be kept during further regeneration of this file. | ||
-- All code placed outside of test routine bodies will be lost. The | ||
-- code intended to set up and tear down the test environment should be | ||
-- placed into Q.Test_Data. | ||
|
||
with AUnit.Assertions; use AUnit.Assertions; | ||
with System.Assertions; | ||
|
||
-- begin read only | ||
-- id:2.2/00/ | ||
-- | ||
-- This section can be used to add with clauses if necessary. | ||
-- | ||
-- end read only | ||
|
||
-- begin read only | ||
-- end read only | ||
package body Q.Test_Data.Tests is | ||
|
||
-- begin read only | ||
-- id:2.2/01/ | ||
-- | ||
-- This section can be used to add global variables and other elements. | ||
-- | ||
-- end read only | ||
|
||
-- begin read only | ||
-- end read only | ||
|
||
-- begin read only | ||
procedure Test_Inc (Gnattest_T : in out Test); | ||
procedure Test_Inc_4f8b9f (Gnattest_T : in out Test) renames Test_Inc; | ||
-- id:2.2/4f8b9f38b0ce8c74/Inc/1/0/ | ||
procedure Test_Inc (Gnattest_T : in out Test) is | ||
-- q.ads:2:4:Inc | ||
-- end read only | ||
|
||
pragma Unreferenced (Gnattest_T); | ||
|
||
begin | ||
|
||
AUnit.Assertions.Assert | ||
(Inc (100000) = 100001, | ||
"wrong inc"); | ||
|
||
-- begin read only | ||
end Test_Inc; | ||
-- end read only | ||
|
||
-- begin read only | ||
-- id:2.2/02/ | ||
-- | ||
-- This section can be used to add elaboration code for the global state. | ||
-- | ||
begin | ||
-- end read only | ||
null; | ||
-- begin read only | ||
-- end read only | ||
end Q.Test_Data.Tests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package body P is | ||
|
||
procedure Package_Needs_Body (X : in out Integer) is | ||
begin | ||
null; | ||
end Package_Needs_Body; | ||
|
||
package body N1 is | ||
procedure Nested_Needs_Body is | ||
begin | ||
null; | ||
end Nested_Needs_Body; | ||
end N1; | ||
|
||
end P; |
Oops, something went wrong.