Skip to content

test: add test patterns for noder and parser#35

Merged
Lemon73-Computing merged 4 commits into
mainfrom
lemon73/add-test-unit-patterns
May 9, 2026
Merged

test: add test patterns for noder and parser#35
Lemon73-Computing merged 4 commits into
mainfrom
lemon73/add-test-unit-patterns

Conversation

@Lemon73-Computing
Copy link
Copy Markdown
Member

No description provided.

@Lemon73-Computing Lemon73-Computing self-assigned this May 9, 2026
@Lemon73-Computing Lemon73-Computing added good first issue Good for newcomers spec Specifications csharp Implementations of C# labels May 9, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors unit tests in Noder.cs and Parser.cs by converting them to theory-based tests using MemberData for better parameterization. The review feedback identifies several improvement opportunities, specifically regarding cross-platform compatibility issues caused by hardcoded line endings (\r\n) in expected outputs. Additionally, the feedback points out a typo in a comment and suggests removing or properly handling commented-out test cases to maintain code cleanliness.

Comment thread tests/CommonNovel.Tests/Noder.cs Outdated
Comment thread tests/CommonNovel.Tests/Noder.cs Outdated
Comment thread tests/CommonNovel.Tests/Parser.cs Outdated
Comment thread tests/CommonNovel.Tests/Parser.cs Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

Code Coverage

Result: success

Show coverage summary

Summary

Generated on: 05/09/2026 - 07:05:38
Coverage date: 05/09/2026 - 07:05:36
Parser: Cobertura
Assemblies: 1
Classes: 1
Files: 3
Line coverage: 100% (71 of 71)
Covered lines: 71
Uncovered lines: 0
Coverable lines: 71
Total lines: 139
Branch coverage: 100% (20 of 20)
Covered branches: 20
Total branches: 20
Method coverage: Feature is only available for sponsors

Risk Hotspots

No risk hotspots found.

Coverage

Name Covered Uncovered Coverable Total Line coverage Covered Total Branch coverage
CommonNovel 71 0 71 139 100% 20 20 100%
CommonNovel.Compiler 71 0 71 139 100% 20 20 100%

@Lemon73-Computing Lemon73-Computing merged commit 3e24e7b into main May 9, 2026
1 check passed
@Lemon73-Computing Lemon73-Computing deleted the lemon73/add-test-unit-patterns branch May 9, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

csharp Implementations of C# good first issue Good for newcomers spec Specifications

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant