(t *testing.T)
| 77 | } |
| 78 | |
| 79 | func TestSplitBatchCatFileOutput(t *testing.T) { |
| 80 | buf := bytes.NewBuffer([]byte(simpleBatchCatFileOutput)) |
| 81 | notesMap, err := splitBatchCatFileOutput(buf) |
| 82 | if err != nil { |
| 83 | t.Fatal(err) |
| 84 | } |
| 85 | if len(notesMap["c1f5a5f135b171cc963b822d338000d185f1ae4f"]) != 342 { |
| 86 | t.Fatal("Failed to parse the contents of the first cat'ed file") |
| 87 | } |
| 88 | if len(notesMap["31ea4952450bbe5db0d6a7a7903e451925106c0f"]) != 141 { |
| 89 | t.Fatal("Failed to parse the contents of the second cat'ed file") |
| 90 | } |
| 91 | if len(notesMap["3128dc6881bf7647aea90fef1f4fbf883df6a8fe"]) != 342 { |
| 92 | t.Fatal("Failed to parse the contents of the last cat'ed file") |
| 93 | } |
| 94 | } |
nothing calls this directly
no test coverage detected