Name : perl-Test-HexString
| |
Version : 0.30.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.1.1
| Date : 2024-08-02 23:00:21
|
Group : Unspecified
| Source RPM : perl-Test-HexString-0.30.0-lp156.1.1.src.rpm
|
Size : 0.03 MB
| |
Packager : https://www_suse_com/
| |
Summary : test binary strings with hex dump diagnostics
|
Description :
This testing module provides a single function, \'is_hexstr()\', which asserts that the given string matches what was expected. When the strings match (i.e. compare equal using the \'eq\' operator), the behaviour is identical to the usual \'is()\' function provided by \'Test::More\'.
When the strings are different, a hex dump is produced as diagnostic, rather than the string values being printed raw. This may be beneficial if the string contains largely binary data, such as may be produced by binary file or network protocol modules.
To print the hex dump when it fails, each string is broken into 16 byte chunks. The first pair of chunks that fail to match are then printed, in both hexadecimal and character form, in a message in the following format:
Only bytes in the range \'0x20-0x7e\' are printed as literal characters. Any other byte is rendered as \'.\':
Only the first differing line is printed; because otherwise it may result in a long output because of misaligned bytes.
If STDOUT is a terminal, then different bytes are printed in bold for visibility.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.6/noarch |