MCPcopy Create free account
hub / github.com/tendermint/tendermint / TestStringInSlice

Function TestStringInSlice

libs/strings/string_test.go:28–33  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func TestStringInSlice(t *testing.T) {
29 require.True(t, StringInSlice("a", []string{"a", "b", "c"}))
30 require.False(t, StringInSlice("d", []string{"a", "b", "c"}))
31 require.True(t, StringInSlice("", []string{""}))
32 require.False(t, StringInSlice("", []string{}))
33}
34
35func TestIsASCIIText(t *testing.T) {
36 notASCIIText := []string{

Callers

nothing calls this directly

Calls 1

StringInSliceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…