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

saygoweb / anorm / 19342574673
84%

Build:
DEFAULT BRANCH: master
Ran 13 Nov 2025 06:57PM UTC
Jobs 1
Files 33
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Nov 2025 06:56PM UTC coverage: 84.349% (-0.04%) from 84.389%
19342574673

push

github

web-flow
Refactor MangoQuery to use typed properties and constants (#45)

* Rename to byMango and remove mango alias and accept MangoQuery type instead of array

- Changed QueryBuilder::byMango() to accept MangoQuery|array parameter
- Added MangoQuery::fromArray() static method for creating instances from arrays

Replace magic strings with constants in MangoQuery class

- Added public constants for all Mango query field names:
- Updated MangoQuery constructor and validation to use constants
- Updated all test files to use constants instead of magic strings
- Added tests to verify constant values and fromArray functionality

Refactor QueryBuilder_Mango_Test to use byMango(MangoQuery::fromArray([...]))

- Updated all byMango() calls to use MangoQuery::fromArray() pattern
- Added MangoQuery import to test file
- Updated tests to use MangoQuery constants instead of magic strings
- Fixed testQueryBuilder_MangoQueryHasPaginationLogic to use fromArray()
- Fixed testQueryBuilder_MangoQueryObjectDirectly to use fromArray()
- Fixed fromArray() method to return properly initialized query object
- Removed getSelector(), getFields(), getSort(), getLimit(), getSkip(), getUseIndex() methods
- Updated QueryBuilder::applyMangoQuery() to access properties directly
- Updated MangoQuery_Test.php to access properties directly instead of using getters
- Properties are public and don't need getter methods

Refactor remaining tests in QueryBuilder_Mango_Test to use byMango(MangoQuery::fromArray([...]))

- Updated testQueryBuilder_MangoQueryWithSkip to use MangoQuery::fromArray()
- Updated testQueryBuilder_MangoQueryWithRegexOperator to use MangoQuery::fromArray()
- Updated testQueryBuilder_MangoQueryWithPhase2OperatorsWithoutDollarPrefix to use MangoQuery::fromArray()
- Updated testQueryBuilder_MangoQueryWithNotExistsOperator to use MangoQuery::fromArray()
- Updated testQueryBuilder_MangoQueryWithNotInOperator to use MangoQuery::fromArray()
- Updated testQueryBuilder_MangoQueryWithSk... (continued)

22 of 22 new or added lines in 2 files covered. (100.0%)

1633 of 1936 relevant lines covered (84.35%)

16.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19342574673.1 13 Nov 2025 06:57PM UTC 33
84.35
GitHub Action Run
Source Files on build 19342574673
  • Tree
  • List 33
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fda28095 on github
  • Prev Build on master (#19203644894)
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