(t *testing.T)
| 148 | } |
| 149 | |
| 150 | func TestNew_InvalidURL(t *testing.T) { |
| 151 | t.Parallel() |
| 152 | _, err := New(WithAddresses(":foo")) |
| 153 | if err == nil { |
| 154 | t.Fatal("Expected error for invalid URL") |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | func TestNew_InvalidURLFromEnvironment(t *testing.T) { |
| 159 | t.Setenv("ELASTICSEARCH_URL", ":foobar") |
nothing calls this directly
no test coverage detected