-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform more strict checking on interface method.
1. The first method argument must be of handle type. 2. Only one output argument (either am=pre or am=out) is allowed. 3. Output argument (if any) must be the last argument.
- Loading branch information
Showing
10 changed files
with
139 additions
and
105 deletions.
There are no files selected for viewing
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
13 changes: 13 additions & 0 deletions
13
libs/dfi/gtest/descriptors/invalids/methodMissingHandle.descriptor
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,13 @@ | ||
:header | ||
type=interface | ||
name=calculator | ||
version=1.0.0 | ||
:annotations | ||
classname=org.example.Calculator | ||
:types | ||
StatsResult={DDD[D average min max input} | ||
:methods | ||
add(DD)D=add(DD#am=pre;*D)N | ||
sub(DD)D=sub(#am=handle;PDD*#am=pre;D)N | ||
sqrt(D)D=sqrt(#am=handle;PD*#am=pre;D)N | ||
stats([D)LStatsResult;=stats(#am=handle;P[D#am=out;*LStatsResult;)N |
13 changes: 13 additions & 0 deletions
13
libs/dfi/gtest/descriptors/invalids/methodWithoutArguments.descriptor
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,13 @@ | ||
:header | ||
type=interface | ||
name=calculator | ||
version=1.0.0 | ||
:annotations | ||
classname=org.example.Calculator | ||
:types | ||
StatsResult={DDD[D average min max input} | ||
:methods | ||
add(DD)D=add()N | ||
sub(DD)D=sub(#am=handle;PDD*#am=pre;D)N | ||
sqrt(D)D=sqrt(#am=handle;PD*#am=pre;D)N | ||
stats([D)LStatsResult;=stats(#am=handle;P[D#am=out;*LStatsResult;)N |
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
8 changes: 8 additions & 0 deletions
8
libs/dfi/gtest/descriptors/invalids/multiPreOutArgs.descriptor
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,8 @@ | ||
:header | ||
type=interface | ||
name=example5 | ||
version=1.0.0 | ||
:annotations | ||
:types | ||
:methods | ||
multiPreOut(V)Di=multiPreOut(#am=handle;P#am=pre;*D#am=pre;*i)N |
8 changes: 8 additions & 0 deletions
8
libs/dfi/gtest/descriptors/invalids/outArgAtWrongPosition.descriptor
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,8 @@ | ||
:header | ||
type=interface | ||
name=example5 | ||
version=1.0.0 | ||
:annotations | ||
:types | ||
:methods | ||
outWrongPos(V)Di=outWrongPos(#am=handle;P#am=out;**i**D)N |
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
Oops, something went wrong.