Page MenuHomeIn-Portal Phabricator

INP-1461 - Print only first 50 elements for long arrays in Debugger
ClosedPublic

Authored by alex on Aug 15 2015, 3:51 AM.

Details

Test Plan
  1. create a method in kMainTagProcessor, that would
    • have 1 parameter for each data type processed by Debugger::print_r method:
      • null
      • object
      • resource
      • string, that has less then 200 symbols
      • string, that has more then 200 symbols
      • number
      • array, that has more then 50 elements
      • array, that has less then 50 elements
      • array with 5 elements, where one of them is an array with 200 elements
    • trigger Fatal Error
  2. create new tag in kMainTagProcessor, that would:
    • call newly created method
    • provide value of corresponding data type in each parameter
  3. confirm, that:
    • null is printed as NULL
    • object is printed the same way as print_r function prints it
    • resource is printed as it's casted to string version
    • string with less then 200 symbols is printed completely
    • string with more then 200 symbols has only first 50 symbols printed and ... printed after them
    • number is printed as is
    • array, that has more then 50 elements has only first 50 elements printed and ... element printed after them
    • array, that has less then 50 elements has all elements printed
    • sub-array of 200 elements is printed the same was as array with more then 50 elements (cut + ... added)

Diff Detail

Repository
rINP In-Portal
Branch
/in-portal/branches/5.2.x
Lint
Lint ErrorsExcuse: Will fix in 5.3.x.
Unit
No Unit Test Coverage
Build Status
Buildable 81
Build 81: arc lint + arc unit

Event Timeline

alex updated this revision to Diff 251.Aug 15 2015, 3:51 AM
alex retitled this revision from to INP-1461 - Print only first 50 elements for long arrays.
alex updated this object.
alex edited the test plan for this revision. (Show Details)
alex added 1 JIRA issue(s): INP-1461.
glebs accepted this revision.Sep 10 2015, 1:31 AM
glebs edited edge metadata.
This revision is now accepted and ready to land.Sep 10 2015, 1:31 AM
This revision was automatically updated to reflect the committed changes.
alex retitled this revision from INP-1461 - Print only first 50 elements for long arrays to INP-1461 - Print only first 50 elements for long arrays in Debugger.Jul 16 2016, 7:09 AM
alex edited edge metadata.