softwaregroup-bg/ut-codec-iso8583

How To

Opened this issue · 2 comments

Any docs how to use this module from scratch? I am new in ut-*

It depends how you want to use it.
The easiest way is to use the encode and decode methods documented in the readme, that can convert between buffer and object and can be used without involving other ut-* modules. Examples can be found in the unit tests.

If you want more fully working thing like handling TCP level streams, then you will need to involve more modules, though we do not have enough documentation at the moment, as we are still improving it.

Hi Kalinkrustev.
Please give an simple encode & decode of an ISO 8583 message since when I run encoding in unit test. I got below results but dont really get what's going on.

Subtest: encode message object to buffer - all fields

ok 1 - encode all fields
ok 2 - test meta object
ok 3 - test context object
1..3

ok 1 - encode message object to buffer - all fields # time=32.747ms

Subtest: encode message object without field 11 to buffer - test context

ok 1 - encode all fields
ok 2 - test meta object
ok 3 - test meta object
1..3

ok 2 - encode message object without field 11 to buffer - test context # time=10.128ms

1..2

time=71.259ms

Thanks & Stay Safe