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

Function assertContains

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

Source from the content-addressed store, hash-verified

491}
492
493func assertContains(t *testing.T, args []string, val string) {
494 t.Helper()
495 if !slices.Contains(args, val) {
496 t.Errorf("expected args to contain %q, got %v", val, args)
497 }
498}
499
500func assertNotContains(t *testing.T, args []string, val string) {
501 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected