Enhance the code coverage of testing#255
Merged
mercyblitz merged 8 commits intomicrosphere-projects:devfrom Mar 18, 2026
Merged
Enhance the code coverage of testing#255mercyblitz merged 8 commits intomicrosphere-projects:devfrom
mercyblitz merged 8 commits intomicrosphere-projects:devfrom
Conversation
Update the Maven <revision> property in pom.xml from 0.1.8-SNAPSHOT to 0.1.9-SNAPSHOT to prepare the next development iteration.
…yFilter Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…rage Add missing test cases for StringToByteConverter and ClassFileJarEntryFilter
Add missing test cases for StringToByteConverter and ClassFileJarEntryFilter
Co-authored-by: mercyblitz <533114+mercyblitz@users.noreply.github.com>
…est-cases [WIP] Enhance code coverage for existing test cases
|
Codecov Report✅ All modified and coverable lines are covered by tests.
🚀 New features to boost your workflow:
|
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.



This pull request primarily adds new and enhanced unit tests across several modules to improve test coverage and reliability, while also making a minor default value fix in the
Deprecationbuilder and incrementing the project version. The new tests cover edge cases and additional scenarios for converters, filters, events, JSON exceptions, language utilities, predicates, I/O, mutable integers, class utilities, and version handling.Testing improvements:
StringToByteConverter(including failure cases) (StringToByteConverterTest.java)ClassFileJarEntryFilter(acceptance and rejection cases) (ClassFileJarEntryFilterTest.java)JSONException(constructor, type, and null message) (JSONExceptionTest.java)GenericEvent(null source, timestamp bounds, ordering, and various source types) (GenericEventTest.java)StringSerializer/StringDeserializer(custom charset, empty string, UTF-16 roundtrip) (StringSerializerAndDeserializerTest.java)MutableInteger(zero/negative values, equality) (MutableIntegerTest.java)Wrapper(handling of non-wrapper objects) (WrapperTest.java)Predicates(single predicate and empty array cases) (PredicatesTest.java)ClassUtils(inherited classes/interfaces, superclasses, and interface discovery) (ClassUtilsTest.java)Version(operator parsing, comparison, and factory methods) (VersionTest.java)Bug fix / Default value improvement:
levelfield in theDeprecation.Builderclass and added tests to ensure correct defaulting and field assignment (Deprecation.java,DeprecationTest.java). [1] [2]Version update:
0.1.8-SNAPSHOTto0.1.9-SNAPSHOTinpom.xml.