Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1475: Fixed mapping expansions for profile-informed authoring not re… #1476

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

brynrhodes
Copy link
Member

…specting signature level

Copy link

Formatting check succeeded!

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 64.44%. Comparing base (10af73a) to head (390a643).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...va/org/cqframework/cql/cql2elm/LibraryBuilder.java 80.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1476   +/-   ##
=========================================
  Coverage     64.43%   64.44%           
  Complexity     1937     1937           
=========================================
  Files           494      494           
  Lines         28144    28154   +10     
  Branches       5588     5592    +4     
=========================================
+ Hits          18135    18143    +8     
- Misses         7754     7755    +1     
- Partials       2255     2256    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -2743,6 +2743,22 @@ public Expression applyTargetMap(Expression source, String targetMap) {
String functionArgument = targetMap.substring(invocationStart + 1, targetMap.lastIndexOf(')'));
Expression argumentSource =
functionArgument.equals("%value") ? source : applyTargetMap(source, functionArgument);

// NOTE: This is needed to work around the mapping for ToInterval
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General feedback: Please fix the title and description of this PR so at a minimum it's not a truncated version of the commit message.

@@ -467,4 +467,38 @@ void abstractClassNotRetrievable() throws IOException {
errors.stream().map(Throwable::getMessage).collect(Collectors.toList());
assertThat(errorMessages, contains("Specified data type DomainResource does not support retrieval."));
}

@Test
void mappingExpansionsRespectSignatureLevel() throws IOException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a test for Signature.None to contrast with the test below. Also, it might be good to test other non-Overloads, non-None Signature types as well.

@JPercival JPercival merged commit 79b699a into master Dec 18, 2024
7 checks passed
@JPercival JPercival deleted the br-1475-mapping-signaturelevel branch December 18, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants