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

Adjust source generator verifier for broader usability #6995

Merged
merged 3 commits into from
Oct 20, 2023

Conversation

Youssef1313
Copy link
Member

No description provided.

@Youssef1313 Youssef1313 requested a review from a team as a code owner October 20, 2023 08:28
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Merging #6995 (efd7c16) into main (b87a634) will decrease coverage by 0.01%.
The diff coverage is 80.00%.

@@            Coverage Diff             @@
##             main    #6995      +/-   ##
==========================================
- Coverage   96.43%   96.43%   -0.01%     
==========================================
  Files        1410     1410              
  Lines      336238   336238              
  Branches    11106    11106              
==========================================
- Hits       324239   324237       -2     
+ Misses       9203     8899     -304     
- Partials     2796     3102     +306     

using var reader = new StreamReader(resourceStream, Encoding.UTF8, detectEncodingFromByteOrderMarks: true, bufferSize: 4096, leaveOpen: true);
var name = resourceName.Substring(expectedPrefix.Length);
TestState.GeneratedSources.Add((typeof(CSharpResxGenerator), name, SourceText.From(reader.ReadToEnd(), Encoding.UTF8, SourceHashAlgorithm.Sha256)));
TestState.GeneratedSources.Add((typeof(TSourceGenerator), name, SourceText.From(reader.ReadToEnd(), Encoding.UTF8, SourceHashAlgorithm.Sha256)));
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the most important change.

@sharwell sharwell merged commit 80ac926 into dotnet:main Oct 20, 2023
11 checks passed
@Youssef1313 Youssef1313 deleted the patch-19 branch October 20, 2023 16:00
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.

2 participants