MCPcopy Create free account
hub / github.com/alibaba/open-code-review / TestFileGroupKey_Multiple

Function TestFileGroupKey_Multiple

internal/agent/grouping_test.go:234–239  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

232}
233
234func TestFileGroupKey_Multiple(t *testing.T) {
235 key := fileGroupKey([]model.Diff{{NewPath: "b.go"}, {NewPath: "a.go"}})
236 if key != "a.go,b.go" {
237 t.Errorf("got %q, want %q (sorted)", key, "a.go,b.go")
238 }
239}
240
241func TestGroupDiffs_SingleFile(t *testing.T) {
242 diffs := []model.Diff{{NewPath: "a.go"}}

Callers

nothing calls this directly

Calls 1

fileGroupKeyFunction · 0.85

Tested by

no test coverage detected