aboutsummaryrefslogtreecommitdiff
path: root/chksum/chksum_test.go
blob: ebff6c1cc4abedad46c2595d2ed3b38ea5b8b6a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package chksum

import "testing"

func TestParseFile(t *testing.T) {
	testCases := []struct {
		file string
	}{
		{"testdata/SUM"},
	}
	for _, tc := range testCases {
		t.Run(tc.file, func(t *testing.T) {
			checkList, err := ParseFile(tc.file)
			if err != nil {
				t.Error(err)
			}
			for _, cs := range checkList {
				if err := cs.Check(); err != nil {
					t.Log(err)
				}
			}
		})
	}
}