170 Remove TestFileHeaderExists
170 Remove TestFileHeaderExists
@@ -8,8 +8,6 @@ import (
"os"
"strings"
"testing"
- "bytes"
- "fmt"
)
func TestParseError(t *testing.T) {
@@ -440,30 +438,6 @@ func TestFileAddBatchValidation(t *testing.T) {
}
}
-func TestFileHeaderExists(t *testing.T) {
- file := mockFilePPD()
- buf := new(bytes.Buffer)
- w := NewWriter(buf)
- w.Write(file)
- w.Flush()
- r := NewReader(strings.NewReader(buf.String()))
- f, err := r.Read()
- if err != nil {
- if p, ok := err.(*ParseError); ok {
- if e, ok := p.Err.(*FileError); ok {
- if e.Msg != msgFileHeader {
- t.Errorf("%T: %s", e, e)
- }
- }
- } else {
- // error is nil if the file was parsed properly.
- t.Errorf("%T: %s", err, err)
- }
- } else {
- fmt.Println(f.Header.String())
- }
-}
-
// TestFileLongErr Batch Header Service Class is 000 which does not validate
func TestFileLongErr(t *testing.T) {
line := "101 076401251 0764012510807291511A094101achdestname companyname 5000companyname origid PPDCHECKPAYMT000002080730 1076401250000001"
