Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support noc for iat entries #328 #336

Merged
merged 14 commits into from
Nov 1, 2018
Merged

Conversation

bkmoovio
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Oct 31, 2018

Coverage Status

Coverage increased (+1.2%) to 97.221% when pulling fb681e7 on Support-NOC-for-IAT-Entries-#328 into ff055d8 on master.

Increase IAT Addenda Record Code Test Coverage
Increase code test coverage for addenda18
@bkmoovio
Copy link
Contributor Author

Linux seems to have failed on GOVERALLS, so I restarted the build

iatBatch.go Outdated
msg := fmt.Sprint(msgIATBatchAddendaRequired)
return &BatchError{BatchNumber: batch.Header.BatchNumber, FieldName: "Addenda16", Msg: msg}

if entry.Category != CategoryNOC {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Often for big if block like this I'll reverse the logic to return early. Then you don't have if's inside if's.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

return nill for addendaFieldInclusion when entry.Category is NOC
Remove typeCode() fucntion from Addenda10-Addenda16 types as they are not Addendumer
Return nil if entry.Category = NOC
Support NOC for IAT entries
@bkmoovio bkmoovio merged commit 3aeb5fc into master Nov 1, 2018
@bkmoovio bkmoovio deleted the Support-NOC-for-IAT-Entries-#328 branch November 1, 2018 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants