(t *testing.T)
| 480 | } |
| 481 | |
| 482 | func TestNewBase_WithAddresses(t *testing.T) { |
| 483 | t.Parallel() |
| 484 | c, err := NewBase(WithAddresses("http://localhost:8080")) |
| 485 | if err != nil { |
| 486 | t.Fatalf("Unexpected error: %s", err) |
| 487 | } |
| 488 | u := c.Transport.(*elastictransport.Client).URLs()[0].String() |
| 489 | if u != "http://localhost:8080" { |
| 490 | t.Errorf("Unexpected URL, want=http://localhost:8080, got=%s", u) |
| 491 | } |
| 492 | } |
| 493 | |
| 494 | func TestNewBase_Close(t *testing.T) { |
| 495 | t.Parallel() |
nothing calls this directly
no test coverage detected