Skip to content

Test closing a never-opened connection - #379

Merged
Giorgi merged 1 commit into
Giorgi:developfrom
pengdows:fix/close-never-opened
Oct 20, 2026
Merged

Giorgi merged 1 commit into
Giorgi:developfrom
pengdows:fix/close-never-opened

Conversation

@alaricd

@alaricd alaricd commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Adds the requested regression coverage for a connection that was never opened. The test verifies that Close() and CloseAsync() do not throw, the state remains Closed, and StateChange is not raised.\n\nVerified with the targeted test: passed.

@Giorgi
Giorgi merged commit 921814d into Giorgi:develop Oct 20, 2026
4 of 5 checks passed
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 39425920399

Warning

Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →

Coverage at 92.58% (no base build to compare)

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 4018
Covered Lines: 3782
Line Coverage: 94.13%
Relevant Branches: 2289
Covered Branches: 2057
Branch Coverage: 89.86%
Branches in Coverage %: Yes
Coverage Strength: 1002586.92 hits per line

💛 - Coveralls

alaricd added a commit to pengdows/pengdows.AdoNetApiTest.conformance that referenced this pull request Oct 20, 2026
…ises nothing

The asynchronous tests were behind #if NETSTANDARD2_1_OR_GREATER, which the
net10.0 build does not define, so nine Required tests never ran there and
the runner's catalog, read from that build, left them out. They are now
behind #if !NETSTANDARD2_0, and a repository test checks they are in the
net10.0 build.

StateChange "occurs when the state of the connection changes from closed
to opened or from opened to closed", so closing a closed connection must
not raise it (Required). Close and CloseAsync on a connection never opened
are Common, since no page covers Close before Open; DuckDB.NET added the
same test (Giorgi/DuckDB.NET#379).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch is waiting to be deployed

1 waiting deployment
external — 1b11dba9 Waiting Oct 20, 2026 by alaricd via Authorize #693
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.

3 participants