(t *testing.T)
| 111 | } |
| 112 | |
| 113 | func TestLoaderLoad(t *testing.T) { |
| 114 | setupRawRecords(t) |
| 115 | defer teardownRecords(t) |
| 116 | |
| 117 | _, loadable, err := ListPath(testFolder) |
| 118 | if err != nil { |
| 119 | t.Fatal(err) |
| 120 | } |
| 121 | |
| 122 | for _, fileName := range loadable { |
| 123 | var rec pb.Record |
| 124 | if err := Load(fileName, &rec); err != nil { |
| 125 | t.Fatalf("erorr loading %s: %s", fileName, err) |
| 126 | } else if !sameRecord(rec, testRecord) { |
| 127 | t.Fatal("records should be the same") |
| 128 | } |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | func TestLoaderLoadWithError(t *testing.T) { |
| 133 | setupRawRecords(t) |
nothing calls this directly
no test coverage detected