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

Zip refactoring #715

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Zip refactoring #715

wants to merge 21 commits into from

Conversation

Orace
Copy link
Contributor

@Orace Orace commented Nov 20, 2019

This PR continues #639 since I erroneously deleted it's branch.

@Orace
Copy link
Contributor Author

Orace commented Nov 20, 2019

To improve the documentation, we may get a lesson from System.Linq.Enumerable.Zip method.

@Orace Orace mentioned this pull request Dec 5, 2019
Orace and others added 19 commits May 11, 2022 15:28
- introduce CustomZip with separate behavior by source
- use CustomZip for EquiZip, ZipLongest and ZipShortest
- add ValueTuple overloads
- use t4 file to have up to 8 input sequences.
Remove "Source" from the name of the Zip method parameters.
Typos
Fix spacing in tt files
Renamed ZipLongestHelper.MoveNextOrDispose to Enumerator.Read
In Enumerator.TryRead value is now out instead of ref.
Rewrite the Zip* sections in README.md
Co-Authored-By: Atif Aziz <code@raboof.com>
Added missing ArgumentNullException.
Use ordinal in for type parameter names.
Conflicts resolved:

- MoreLinq/EquiZip.cs
- MoreLinq/Extensions.g.cs
- MoreLinq/ZipLongest.cs
- MoreLinq/ZipShortest.cs
Fixes following error:

    EXEC : error : Error running transform: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
       ---> System.IO.FileLoadException: Could not load file or assembly 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The parameter is incorrect. (0x80070057 (E_INVALIDARG))
      File name: 'System.Collections, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
       ---> System.ArgumentException: Path "System.Collections.dll" is not an absolute path. (Parameter 'assemblyPath')
         at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
         at Mono.TextTemplating.TemplateAssemblyLoadContext.Load(AssemblyName assemblyName) in /_/Mono.TextTemplating/Mono.TextTemplating/TemplateAssemblyLoadContext.cs:line 57
         at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
         at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
         at System.Linq.Enumerable.Range(Int32 start, Int32 count)
         at Microsoft.VisualStudio.TextTemplating5ca31a7.GeneratedTextTransformation.TransformText()
         at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
         at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
         --- End of inner exception stack trace ---
         at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
         at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
         at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
         at Mono.TextTemplating.CompiledTemplate.TemplateProcessor.CreateAndProcess(ITextTemplatingEngineHost host, CompiledAssemblyData templateAssemblyData, String templateAssemblyFile, String fullName, CultureInfo culture, String[] referencedAssemblyFiles) in /_/Mono.TextTemplating/Mono.TextTemplating/CompiledTemplate.TemplateExecutor.cs:line 78
@codecov
Copy link

codecov bot commented Feb 25, 2023

Codecov Report

Merging #715 (d514db0) into master (aefa90b) will decrease coverage by 2.03%.
The diff coverage is 60.63%.

❗ Current head d514db0 differs from pull request most recent head c49ee41. Consider uploading reports for the commit c49ee41 to get more accurate results

@@            Coverage Diff             @@
##           master     #715      +/-   ##
==========================================
- Coverage   92.49%   90.47%   -2.03%     
==========================================
  Files         113      113              
  Lines        3424     3506      +82     
  Branches     1024     1055      +31     
==========================================
+ Hits         3167     3172       +5     
- Misses        192      265      +73     
- Partials       65       69       +4     
Impacted Files Coverage Δ
MoreLinq/ZipLongest.g.cs 49.42% <49.42%> (ø)
MoreLinq/ZipShortest.g.cs 54.16% <54.16%> (ø)
MoreLinq/EquiZip.g.cs 70.83% <70.83%> (ø)
MoreLinq/Enumerator.cs 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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