Skip to content

Fix: Several small codebase fixes - #413

Open
AnnaSasDev wants to merge 14 commits into
corefrom
codebase-research
Open

Fix: Several small codebase fixes#413
AnnaSasDev wants to merge 14 commits into
corefrom
codebase-research

Conversation

@AnnaSasDev

Copy link
Copy Markdown
Member

No description provided.

AnnaSasDev and others added 12 commits August 27, 2026 14:05
This change removes lazy logger lookups and instead uses injected ILogger instances across the WebView manager and related window features. It also replaces Debug.WriteLine calls in disposal/finalizer paths with structured logging when a logger is available, and resolves logger instances from the window service provider in monitor and external URL handlers. Tests were updated to pass the new logger dependency for the WebView manager.
This change introduces an abstraction for external process startup and registers it in DI so web-message handlers can be unit tested without launching real browser processes. It also modernizes several array and collection initializations to use collection expressions and adds broader coverage around native interop status, static asset manifest handling, file picker/filter behavior, and web-message dispatch flows.
Change coverage workflow to run on ubuntu-latest and harden the coverage_report script. Adds explicit encoding="utf-8" to subprocess.run for consistent UTF-8 handling and checks that gh API output is non-empty before calling strip to avoid errors when stdout is None or empty. Files changed: .github/workflows/shared-coverage.yml, scripts/coverage_report.py.
Refactors external process launching into the InfiniFrame.Interop namespace and adds the concrete launcher implementation to the shared project. The service registration is updated to resolve the interface from the new namespace, and related tests are adjusted to match the new contracts and analyzer cleanups.
This change excludes native C/C++/Objective-C source files from Cobertura coverage parsing so they do not inflate coverage totals. It also adds tests covering the new exclusion behavior for native file filtering alongside the existing test package exclusions.
@github-actions

Copy link
Copy Markdown
Contributor

📊 Code Coverage Report

Language Coverage Delta Trend
TypeScript 94.1% 0.0% ➡️ unchanged
C# 19.1% +0.1% 📈 improved
Python 90.4% 0.0% ➡️ unchanged

C# Project Breakdown

Project Coverage Lines Covered
InfiniFrame.WebServer 86.9% 672 584
InfiniFrame.BlazorWebView 62.9% 6896 4340
InfiniFrame.Blazor 47.5% 1840 874
InfiniFrame 21.5% 215808 46350
InfiniFrame.Shared 17.7% 106496 18824
InfiniFrame.NativeBridge 13.7% 137995 18837

github-actions Bot and others added 2 commits August 27, 2026 20:18
Avoid inflated line coverage by deduplicating tracked line numbers per class before counting covered and total lines. This keeps method-level duplicates from inflating IL while preserving coverage from any positive-hit line. Added a regression test covering duplicate line numbers across methods in the same class.
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.

1 participant