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

Function assertContains

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

Source from the content-addressed store, hash-verified

437}
438
439func assertContains(t *testing.T, args []string, val string) {
440 t.Helper()
441 if !slices.Contains(args, val) {
442 t.Errorf("expected args to contain %q, got %v", val, args)
443 }
444}
445
446func assertNotContains(t *testing.T, args []string, val string) {
447 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected