(t *testing.T)
| 45 | } |
| 46 | |
| 47 | func TestNew_WithAddresses(t *testing.T) { |
| 48 | t.Parallel() |
| 49 | c, err := New(WithAddresses("http://localhost:8080//")) |
| 50 | if err != nil { |
| 51 | t.Fatalf("Unexpected error: %s", err) |
| 52 | } |
| 53 | u := c.Transport.(*elastictransport.Client).URLs()[0].String() |
| 54 | if u != "http://localhost:8080" { |
| 55 | t.Errorf("Unexpected URL, want=http://localhost:8080, got=%s", u) |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | func TestNew_WithMultipleAddresses(t *testing.T) { |
| 60 | t.Parallel() |
nothing calls this directly
no test coverage detected