woody_erlang/test
Sergey Yelin 59ec572466
Add depth and limit to formatter (#110)
* Force print trace_id and Co

* Use integer control char for formtatting numbers

* Sync

* Fix format for "wrong" struct

* Replace string formatting with inplace string representation

* Replace foldl with tail call

* Added opts comntainer

* Add formatting with depth

* Simplify depth increment

* More depth tests

* Format test data

* lint fixes

* Fix dialyzer errors

* Introduce current_length and max_length

* Add first tests for max_length

* Add length options

* Fix state in format_struct

* Fix test

* Move depth to stack from state

* Move length from state to stack

* Added more test on chars limit

* More tests

* Try to log more data nj logs

* Cleanup

* Fix line count in arguments

* Add missing formatted text in list and map

* Add comment to raw_string

* Formating

* Replace format with concatenation

* Fix dialyzer errors

* Fix lint errors

* Ignore false positives

* Added tests for max_length and max_depth

* Let logger decide how to format data in case of error

* Add formatter options to meta

* Fix lint error

* Increase complexity for dont_repeat_yourself

* Increase compliexity - 2

* Decrease complexity to minimal for current codebase

* Do not add '...' if no more argemunts in call

* Unify arguments for maybe_add_delimiter and may_be_add_more_marker

* Fix formating for list/set/map

* Simplify format build

* Log error

* Review fixes

* Move formatter options to environment

* Minor fixes and code cleanup

* Fix Opts

* Review fix

* Rework exception handling

* Move list and set format to separate functions

* Fix possible injection

* Eliminate possible badmatch

* Allow more complex dry

* Add test for sets

* Rework list formatter

* More strict limit for length

* Minor cleanup

* Remove unreachable code

* Switch back to formatter

* Remove unneeded flatten

* Do not format last list element if there is no room for it

* Remove unused Param

* Fix

* Simplify formatting call

* Add missing delimiter length

* Fix woody_event_formatter:format_reply/3

* Cleanup

* Add Opts to formatters

* Make skip message compact

* use ~w instead of ~p

* Typo

* Add formatter_opts to woody:options()

* Rework options

* Added escape for "'"

* Rework tests

* Fix tests

* Rework
2019-12-03 16:12:17 +03:00
..
property_test MSPF-429: Graceful shutdowns (#89) 2019-04-19 14:18:32 +03:00
woody_ssl_SUITE_data CDS-64: add options for SSL support (#103) 2019-06-06 13:11:48 +03:00
test.thrift MSPF-31: pass through defined thrift results and exceptions for hierarchical Rpc requests 2016-05-21 21:08:16 +03:00
woody_joint_workers_SUITE.erl MSPF-429: Graceful shutdowns (#89) 2019-04-19 14:18:32 +03:00
woody_ssl_SUITE.erl CDS-64: pass client cert through woody context (#107) 2019-06-24 19:44:45 +03:00
woody_tests_SUITE.erl Add depth and limit to formatter (#110) 2019-12-03 16:12:17 +03:00
woody_transport_opts_SUITE.erl Add depth and limit to formatter (#110) 2019-12-03 16:12:17 +03:00