Skip to content

Adjust source generator verifier for broader usability#6995

Merged
sharwell merged 3 commits intodotnet:mainfrom
Youssef1313:patch-19
Oct 20, 2023
Merged

Adjust source generator verifier for broader usability#6995
sharwell merged 3 commits intodotnet:mainfrom
Youssef1313:patch-19

Conversation

@Youssef1313
Copy link
Copy Markdown
Member

No description provided.

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

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
Copy Markdown
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
@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