(t *testing.T)
| 26 | } |
| 27 | |
| 28 | func 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 | |
| 35 | func TestIsASCIIText(t *testing.T) { |
| 36 | notASCIIText := []string{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…