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

Fixed functions signatures in vararg functions #1124

Merged
merged 3 commits into from
Dec 11, 2020

Conversation

majastrz
Copy link
Member

Fixed function signatures reported in error messages for functions that allow a variable number of arguments.

We didn't have good coverage for this, so the first commit adds a set of tests to assert on various properties of function overloads in default namespaces. The second commit fixes the bug. The third commit revises the format of the signature because the original broken one was confusing.

Copy link
Member

@anthony-c-martin anthony-c-martin left a comment

Choose a reason for hiding this comment

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

:shipit:

@codecov-io
Copy link

codecov-io commented Dec 11, 2020

Codecov Report

Merging #1124 (b5c5f45) into main (3b92e37) will decrease coverage by 0.02%.
The diff coverage is 87.32%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1124      +/-   ##
==========================================
- Coverage   94.24%   94.22%   -0.03%     
==========================================
  Files         328      329       +1     
  Lines       15866    15904      +38     
  Branches       14       14              
==========================================
+ Hits        14953    14985      +32     
- Misses        913      919       +6     
Flag Coverage Δ
dotnet 94.79% <87.32%> (-0.03%) ⬇️
typescript 27.20% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...e.IntegrationTests/Semantics/SemanticModelTests.cs 100.00% <ø> (+3.26%) ⬆️
src/Bicep.Core.Samples/DataSet.cs 100.00% <ø> (ø)
src/Bicep.Core/TypeSystem/FunctionResolver.cs 100.00% <ø> (ø)
....Core.IntegrationTests/Semantics/NamespaceTests.cs 77.50% <77.50%> (ø)
src/Bicep.Core.Samples/DataSets.cs 100.00% <100.00%> (ø)
src/Bicep.Core/Semantics/FunctionOverload.cs 95.16% <100.00%> (ø)

@majastrz majastrz merged commit 9f31166 into main Dec 11, 2020
@majastrz majastrz deleted the majastrz/function-baselines branch December 11, 2020 22:03
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.

None yet

3 participants