Skip to content

fix: handle shared file contents across handles #2194

fix: handle shared file contents across handles

fix: handle shared file contents across handles #2194

Triggered via pull request July 12, 2026 13:12
Status Success
Total duration 5m 38s
Artifacts 4

ci.yml

on: pull_request
Matrix: Unit tests
Static code analysis
3m 34s
Static code analysis
Publish Tests Results
11s
Publish Tests Results
Fit to window
Zoom out
Zoom in

Annotations

10 warnings and 1 notice
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(203,45): warning S1192: Define a constant instead of using this literal 'Stream does not support writing.' 7 times. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net10.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(44,12): warning S5766: Validate data in this deserialization constructor. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net10.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(21,19): warning S3260: Private classes which are not derived in the current assembly should be marked as 'sealed'. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=net10.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(409,29): warning S2325: Make 'GetTimeAdjustmentsForFileStreamWhenFileExists' a static method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(44,12): warning S3776: Refactor this constructor to reduce its Cognitive Complexity from 17 to the 15 allowed. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockDirectoryInfo.cs(42,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileInfo.cs(27,9): warning S1699: Remove this call from a constructor to the overridable 'Refresh' method. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(203,45): warning S1192: Define a constant instead of using this literal 'Stream does not support writing.' 5 times. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(44,12): warning S5766: Validate data in this deserialization constructor. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileStream.cs(21,19): warning S3260: Private classes which are not derived in the current assembly should be marked as 'sealed'. [/home/runner/work/System.IO.Abstractions/System.IO.Abstractions/src/TestableIO.System.IO.Abstractions.TestingHelpers/TestableIO.System.IO.Abstractions.TestingHelpers.csproj::TargetFramework=netstandard2.0]
Unit tests (macos-latest)
The macos-latest label will migrate to macOS 26 beginning June 15, 2026. For more information see https://github.com/actions/runner-images/issues/14167

Artifacts

Produced during runtime
Name Size Digest
API-tests
3.05 KB
sha256:9eb7f2d1161114dda3cc9229a425d982f3574f362f66659d8622b4e299a2279a
Linux-artifacts
692 KB
sha256:b3fc9ff74de60ae534c3802e4695525f3e85892c21d3ffc0f3b379a02d6ede09
Windows-artifacts
878 KB
sha256:c39ba04ab577840744c84a7ed748e494e16847c4e0b6241d5010797c84e30eba
macOS-artifacts
693 KB
sha256:0c97dc225731bd6773b57a1959474eb239355a970a43681cf87b188d2d4ab636