Skip to content

[3] Fix: Doc / code style / naming cleanup#49

Open
redaranj wants to merge 3 commits intocontentauth:mainfrom
redaranj:fix/doc-naming-cleanup
Open

[3] Fix: Doc / code style / naming cleanup#49
redaranj wants to merge 3 commits intocontentauth:mainfrom
redaranj:fix/doc-naming-cleanup

Conversation

@redaranj
Copy link
Member

@redaranj redaranj commented Mar 5, 2026

Changes in this pull request

  • Makes the code and docs more internally consistent

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • All applicable changes have been documented
  • Any TO DO items (or similar) have been entered as GitHub issues and the link to that issue has been included in a comment

Introduce C2PAContext and C2PASettings for shared configuration across
readers and builders. Add C2PAJson for centralized JSON serialization.
Add SettingsValidator for validating C2PA settings. Rewrite Builder to
use context-based creation flow. Add Reader context support with
withStream and withFragment. Update native library to v0.75.19.
Add ManifestValidator for C2PA 2.3 spec compliance checking. Enhance
ManifestDefinition with created vs gathered assertion separation.
Add PredefinedAction, StandardAssertionLabel, and ImageRegionType types.
Integrate manifest validation into Builder.fromJson(). Add c2patool
integration for external validation. Expand test coverage with
comprehensive manifest and validation tests.
Add KDoc to all public APIs. Convert test code to idiomatic .use{}
blocks. Add @JvmStatic and @serializable annotations where missing.
Align signing server property names with Kotlin conventions.
@codecov
Copy link

codecov bot commented Mar 5, 2026

Codecov Report

❌ Patch coverage is 59.29577% with 289 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.27%. Comparing base (16dcd0b) to head (0f0c09e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...org/contentauth/c2pa/manifest/SettingsValidator.kt 42.08% 122 Missing and 39 partials ⚠️
...org/contentauth/c2pa/manifest/ManifestValidator.kt 62.71% 30 Missing and 14 partials ⚠️
...n/org/contentauth/c2pa/manifest/ImageRegionType.kt 11.76% 14 Missing and 1 partial ⚠️
...ary/src/main/kotlin/org/contentauth/c2pa/Stream.kt 55.55% 8 Missing and 4 partials ⚠️
...ontentauth/c2pa/manifest/StandardAssertionLabel.kt 42.10% 10 Missing and 1 partial ⚠️
...ary/src/main/kotlin/org/contentauth/c2pa/Reader.kt 37.50% 8 Missing and 2 partials ⚠️
...ry/src/main/kotlin/org/contentauth/c2pa/Builder.kt 81.63% 5 Missing and 4 partials ⚠️
...g/contentauth/c2pa/manifest/AssertionDefinition.kt 83.72% 2 Missing and 5 partials ⚠️
...c/main/kotlin/org/contentauth/c2pa/C2PASettings.kt 66.66% 2 Missing and 4 partials ⚠️
...main/kotlin/org/contentauth/c2pa/KeyStoreSigner.kt 33.33% 4 Missing and 2 partials ⚠️
... and 5 more
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #49      +/-   ##
============================================
+ Coverage     59.82%   62.27%   +2.45%     
- Complexity        9       42      +33     
============================================
  Files            52       58       +6     
  Lines          1558     2118     +560     
  Branches        162      306     +144     
============================================
+ Hits            932     1319     +387     
- Misses          526      628     +102     
- Partials        100      171      +71     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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