• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wol-soft / php-json-schema-model-generator / 22784825213

06 Mar 2026 10:23PM UTC coverage: 98.658% (-0.04%) from 98.693%
22784825213

Pull #115

github

Enno Woortmann
Add tests to cover new PropertyMerger code paths

- testAllOfIntersectionNarrowsMultiTypeToSubset: covers the allOf
  intersection body (lines 239, 249, 256–263) where the intersection
  narrows a [integer, string] root to ?int via an allOf branch.

- testAllOfIntersectionPreservesExplicitNullableMultiType: covers the
  explicit-nullable preservation path (lines 245–246) where an
  explicitly-nullable root type keeps its null after allOf intersection.

- testRootObjectPropertyNotOverwrittenByAnyOfObjectBranch: covers the
  nested-schema early return (line 57) in PropertyMerger::merge() when
  both existing and incoming properties carry a nested schema.

- testWarningIsEmittedWhenBranchTypeConflictsWithRootType: covers the
  warning echo (lines 112–116) in guardRootPrecedence() by using
  generateDirectory() with output enabled and asserting the printed
  warning text.

Also adds the four corresponding test schema files.
Pull Request #115: Type system (Type widening for compositions, union types)

254 of 259 new or added lines in 22 files covered. (98.07%)

16 existing lines in 6 files now uncovered.

3677 of 3727 relevant lines covered (98.66%)

554.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

99.04
/src/PropertyProcessor/Property/BaseProcessor.php


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc