Draft
Conversation
Agent-Logs-Url: https://github.com/fugerit-org/fj-doc/sessions/c11c4c69-f231-49f2-857f-12ff3059cd2c Co-authored-by: fugerit79 <20170348+fugerit79@users.noreply.github.com>
…, TextWrapFun, FormatLocalDateTimeFun) Agent-Logs-Url: https://github.com/fugerit-org/fj-doc/sessions/c11c4c69-f231-49f2-857f-12ff3059cd2c Co-authored-by: fugerit79 <20170348+fugerit79@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
fugerit79
April 4, 2026 21:01
View session
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| BestPractice | 2 medium |
🟢 Metrics 82 complexity
Metric Results Complexity 82
TIP This summary will be updated as you push new changes. Give us feedback
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds comprehensive test cases to improve coverage across multiple modules in the
fj-docrepository, targeting classes that had no dedicated test coverage.Changes
fj-doc-base— 8 new test classesTestEnumDocAlignH,TestEnumDocAlignV,TestEnumDocStyle— Tests for all enum values,fromValue(), andidFromValueWithDefault()(including unknown value fallback)TestDocStyleAlignHelper— Tests forparseStyle(),getAlign(),getValign()with known and unknown valuesTestDocParserHelper— Tests for the singleton, all recognized container tag names, and non-container rejectionsTestDocParserUtil— Tests fordoubleNested()anddoubleNestedWithDefaultInt()with primary key, fallback key, and default value pathsTestDocTableUtil— Tests for table row partitioning (header vs data rows, strict header detection, empty tables, mixed header rows)TestDefaultMimeHelper— Tests for MIME type lookups for known types (pdf,xml,html,xls) and unknown typesTestTableIntegrityCheckResult— Tests for result code, empty messages list, adding/setting messagesTestReflectiveDocConvert— Tests theDocConvertimplementation for content pipingfj-doc-lib-simpletable-import— NewTestCommonConvertUtilsrethrow-exception=1) for both CSV and XLSX conversion pathsrethrow-exception=0is setInputStreamand invalid byte content to trigger error pathsfj-doc-mod-opencsv— NewTestOpenCSVTypeHandlerOpenCSVTypeHandlerdirectly (complementing the existing UTF-8 handler test);) and line-ending configuration pathTYPE_CSV,MODULE,MIME,HANDLER,HANDLER_UTF8)fj-doc-base-yaml— NewTestDocYamlJsonConvertDocYamlToJson— YAML to JSON round-trip conversionDocJsonToYaml— JSON to YAML round-trip conversionYamlConstants.getDefaultMapper()not nullfj-doc-base-json— NewTestJsonConstantsJsonConstants.getDefaultMapper()not nullDocObjectMapperConstants.PROPERTY_XSD_VERSIONconstant valuefj-doc-freemarker— NewTestFMFunctionsFMFunHelper— Tests parameter count validation with and without enough arguments, custom error messagesCleanTextFun— Tests regex-based text cleaning with expected replacements, no-match case, and insufficient argumentsTextWrapFun— Tests wrapping with valid input and throws on empty argumentsFormatLocalDateTimeFun— Tests date/time formatting withLocalDateTimeobject and pattern, throws on too few argumentsTesting
All new tests pass. No existing tests were modified.