Skip to content

[repo-assist] Tests: add coverage for zipWithIndexAsync and ofIQueryable - #352

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
repo-assist/test-zipwithindexasync-ofiqueryable-20260922-6ed65f7102e1b545
Draft

github-actions[bot] wants to merge 1 commit into
mainfrom
repo-assist/test-zipwithindexasync-ofiqueryable-20260922-6ed65f7102e1b545

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Adds test coverage for two previously-untested public API functions:

  • AsyncSeq.zipWithIndexAsync — an obsolete alias for AsyncSeq.mapiAsync, kept for backward compatibility. Tests verify it behaves identically to mapiAsync (matching indices, values, and empty-sequence behavior).
  • AsyncSeq.ofIQueryable — casts an IQueryable<'T> to IAsyncEnumerable<'T>, intended for interop with LINQ providers (e.g. EF Core's DbSet) that implement both interfaces. Since the repo has no EF Core dependency, tests use a minimal custom type implementing both IQueryable<'T> and IAsyncEnumerable<'T> to exercise the cast and enumeration path.

No functional changes — this is purely additive test coverage, following the pattern of prior test-coverage PRs (#329, #343, #346).

Test Status

  • dotnet build FSharp.Control.AsyncSeq.sln -c Release — succeeded, 0 errors (5 pre-existing unrelated warnings about groupBy/groupByAsync consumption).
  • dotnet test tests/FSharp.Control.AsyncSeq.Tests -c Release500/500 tests passed (495 pre-existing + 5 new).

🤖 This PR was created by Repo Assist, an automated AI assistant, as part of scheduled testing-improvement maintenance (Task 9). A human maintainer should review before merging.

Generated by 🌈 Repo Assist, see workflow run. Learn more.
Comment /repo-assist to run again

Add this agentic workflow to your repo

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@4bc8419fad05e6b032741cbfd189986700bcf71c

…eryable

Both functions previously had no dedicated test coverage. zipWithIndexAsync
is an obsolete alias for mapiAsync (retained for backward compatibility);
ofIQueryable casts an IQueryable<'T> to IAsyncEnumerable<'T> for LINQ
provider integrations such as EF Core. No functional changes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants