diff options
author | Alvaro Videla <[email protected]> | 2009-12-22 22:54:07 +0800 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-02-14 12:15:09 +0100 |
commit | e99ec8e235beb16d35e5a940b814061fb87db989 (patch) | |
tree | 09e69df34ebaef9c380fdbb045abc755831bcba2 /lib/common_test/doc | |
parent | 501b9236450bc1f38d3daf9d9f0dc60b72299d6c (diff) | |
download | otp-e99ec8e235beb16d35e5a940b814061fb87db989.tar.gz otp-e99ec8e235beb16d35e5a940b814061fb87db989.tar.bz2 otp-e99ec8e235beb16d35e5a940b814061fb87db989.zip |
New rb:filter/1 function to ease report filtering
Currently in the rb module the only way to filter
reports is by using the grep/1 or re/1 functions
that use Regular Expressions.
This new function allow us to specify detailed
filters that will match against our reports.
Since the reports are proplists the filters are
tuples of the form {Key, Value}. If the report
contains that tuple, it will be displayed.
Usage:
1> rb:filter([{"foo", "bar"}, {"abc", "value"}]).
2> rb:filter([{"foo", "bar", no}]).
% excludes reports containing {"foo", "bar"}
3> rb:filter([{"foo", RegExp, re}]).
% the report must contain an element with Key = "foo"
% and Value must match RegExp
Diffstat (limited to 'lib/common_test/doc')
0 files changed, 0 insertions, 0 deletions