MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / containsString

Function containsString

internal/net/request_test.go:20–27  ·  view source on GitHub ↗
(slice []string, val string)

Source from the content-addressed store, hash-verified

18)
19
20func containsString(slice []string, val string) bool {
21 for _, item := range slice {
22 if item == val {
23 return true
24 }
25 }
26 return false
27}
28
29func TestDownloadOrder(t *testing.T) {
30 buff := []byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15}

Callers 2

TestDownloadOrderFunction · 0.85
TestDownloadSingleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected