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

Function assertContains

internal/tool/code_search_test.go:288–293  ·  view source on GitHub ↗
(t *testing.T, args []string, val string)

Source from the content-addressed store, hash-verified

286}
287
288func assertContains(t *testing.T, args []string, val string) {
289 t.Helper()
290 if !slices.Contains(args, val) {
291 t.Errorf("expected args to contain %q, got %v", val, args)
292 }
293}
294
295func assertNotContains(t *testing.T, args []string, val string) {
296 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected