(t *testing.T)
| 408 | } |
| 409 | |
| 410 | func TestClientMetrics(t *testing.T) { |
| 411 | c, err := New(WithTransportOptions(elastictransport.WithMetrics())) |
| 412 | if err != nil { |
| 413 | t.Fatalf("Unexpected error: %s", err) |
| 414 | } |
| 415 | |
| 416 | m, err := c.Metrics() |
| 417 | if err != nil { |
| 418 | t.Fatalf("Unexpected error: %v", err) |
| 419 | } |
| 420 | |
| 421 | if m.Requests != 0 { |
| 422 | t.Errorf("Unexpected output: %s", m) |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | func TestResponseCheckOnly(t *testing.T) { |
| 427 | tests := []struct { |
nothing calls this directly
no test coverage detected