iso8583
iso8583 copied to clipboard
feat: support EMV and TLV
Created new 3 fields
- EMV, ConstructedTLV, PrimitiveTLV Used existed pref and env
- BerTLV, BerTLVTag
Codecov Report
Merging #187 (dc4801a) into master (151e28e) will decrease coverage by
4.81%
. The diff coverage is50.36%
.
@@ Coverage Diff @@
## master #187 +/- ##
==========================================
- Coverage 70.91% 66.09% -4.82%
==========================================
Files 38 41 +3
Lines 1798 2348 +550
==========================================
+ Hits 1275 1552 +277
- Misses 336 530 +194
- Partials 187 266 +79
Impacted Files | Coverage Δ | |
---|---|---|
field/spec.go | 66.66% <ø> (ø) |
|
field/constructed_tlv.go | 45.26% <45.26%> (ø) |
|
field/emv.go | 47.73% <47.73%> (ø) |
|
field/primitive_tlv.go | 66.03% <66.03%> (ø) |
|
prefix/bertlv.go | 92.59% <100.00%> (+0.59%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 151e28e...dc4801a. Read the comment docs.
Hey @adamdecaf and @alovak what should we do with this code?
I'm not sure who has been able to test this code. If it's close to fully working I'm okay merging it.
Can we add a fuzz test or two? Doing so in a later PR would be fine with me.
Personally, I have to read about EMV and see why we can't use the composite fields we already have. Currenly, we have a Message
and CompositeField
and they already duplicate a lot of code. In the PR I see we create one more "composite" field.
It would be great to get feedback from engineers that use our package and work with EMV if / what they need (I asked some people about it) and if the code in this PR helps them.
EMV related ticket https://github.com/moov-io/iso8583/issues/200
What's left on this before we could merge it?
closing this in favor of #208. We can get back to this PR if we decide to use parts of it when we receive a feedback from users