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

Function assertContains

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

Source from the content-addressed store, hash-verified

302}
303
304func assertContains(t *testing.T, args []string, val string) {
305 t.Helper()
306 if !slices.Contains(args, val) {
307 t.Errorf("expected args to contain %q, got %v", val, args)
308 }
309}
310
311func assertNotContains(t *testing.T, args []string, val string) {
312 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected