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

Function assertDelegatePatch

internal/delegate/instructions_test.go:435–445  ·  view source on GitHub ↗
(t *testing.T, patch, want string)

Source from the content-addressed store, hash-verified

433}
434
435func assertDelegatePatch(t *testing.T, patch, want string) {
436 t.Helper()
437 for _, part := range []string{"diff --git ", "@@ -1 +1 @@", want} {
438 if !strings.Contains(patch, part) {
439 t.Errorf("patch missing %q:\n%s", part, patch)
440 }
441 }
442 if strings.Contains(patch, "\x1b[") {
443 t.Error("patch contains ANSI color escapes")
444 }
445}

Callers 1

TestDelegateDiffExamplesFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected