Skip to content

Commit

Permalink
Merge pull request #1 from madflojo/badges
Browse files Browse the repository at this point in the history
Adding Badges for Travis, Coveralls, and Docs
  • Loading branch information
madflojo authored Aug 5, 2021
2 parents 61fc176 + 13fc253 commit dc1d2cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

A Message Length Indicator Encoder/Decoder

[![PkgGoDev](https://pkg.go.dev/badge/github.com/americanexpress/simplemli)](https://pkg.go.dev/github.com/americanexpress/simplemli)
[![Build Status](https://www.travis-ci.com/americanexpress/simplemli.svg?branch=main)](https://www.travis-ci.com/americanexpress/simplemli)
[![Coverage Status](https://coveralls.io/repos/github/americanexpress/simplemli/badge.svg?branch=main)](https://coveralls.io/github/americanexpress/simplemli?branch=main)
[![Go Report Card](https://goreportcard.com/badge/github.com/americanexpress/simplemli)](https://goreportcard.com/report/github.com/americanexpress/simplemli)

Message Length Indicators (MLI) are commonly used in communications over raw TCP/IP sockets. This method of denoting
message length is especially popular with users of [ISO 8583](https://en.wikipedia.org/wiki/ISO_8583) messages, a
common communication protocol for financial transactions.
Expand Down
14 changes: 7 additions & 7 deletions mli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,47 +29,47 @@ type MLICase struct {

func TestMLIs(t *testing.T) {
mc := []MLICase{
MLICase{
{
Name: "2I",
Size: Size2I,
Encoded: "002d",
Invalid: "0001",
Value: 43,
},
MLICase{
{
Name: "2E",
Size: Size2E,
Encoded: "002b",
Value: 43,
},
MLICase{
{
Name: "4I",
Size: Size4I,
Encoded: "00000035",
Invalid: "00000001",
Value: 49,
},
MLICase{
{
Name: "4E",
Size: Size4E,
Encoded: "00000022",
Value: 34,
},
MLICase{
{
Name: "2EE",
Size: Size2EE,
Encoded: "0036",
Value: 56,
EmbeddedHeader: 2,
},
MLICase{
{
Name: "2BCD2",
Size: Size2BCD2,
Encoded: "00000288",
Invalid: "00000001",
Value: 284,
},
MLICase{
{
Name: "A4E",
Size: SizeA4E,
Encoded: "30303433",
Expand Down

0 comments on commit dc1d2cd

Please sign in to comment.