MCPcopy Index your code
hub / github.com/google/git-appraise / TestSplitBatchCatFileOutput

Function TestSplitBatchCatFileOutput

repository/git_test.go:79–94  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

77}
78
79func 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}

Callers

nothing calls this directly

Calls 1

splitBatchCatFileOutputFunction · 0.85

Tested by

no test coverage detected