MCPcopy
hub / github.com/IBM/sarama / TestDefaultConfigValidates

Function TestDefaultConfigValidates

config_test.go:28–36  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func TestDefaultConfigValidates(t *testing.T) {
29 config := NewTestConfig()
30 if err := config.Validate(); err != nil {
31 t.Error(err)
32 }
33 if config.MetricRegistry == nil {
34 t.Error("Expected non nil metrics.MetricRegistry, got nil")
35 }
36}
37
38// TestInvalidClientIDValidated ensures that the ClientID field is checked
39// when Version is set to anything less than 1_0_0_0, but otherwise accepted

Callers

nothing calls this directly

Calls 3

ValidateMethod · 0.80
NewTestConfigFunction · 0.70
ErrorMethod · 0.65

Tested by

no test coverage detected