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

Function newTestAdmin

admin_test.go:2138–2141  ·  view source on GitHub ↗

newTestAdmin builds a V2.1 ClusterAdmin against the given seed broker with retry backoff disabled and auto-cleanup.

(t *testing.T, seed *MockBroker)

Source from the content-addressed store, hash-verified

2136// newTestAdmin builds a V2.1 ClusterAdmin against the given seed broker with
2137// retry backoff disabled and auto-cleanup.
2138func newTestAdmin(t *testing.T, seed *MockBroker) ClusterAdmin {
2139 t.Helper()
2140 return newTestAdminAt(t, V2_1_0_0, seed)
2141}
2142
2143// newTestAdminAt is like newTestAdmin but with a caller-chosen KafkaVersion.
2144func newTestAdminAt(t *testing.T, version KafkaVersion, seed *MockBroker) ClusterAdmin {

Callers 2

TestListOffsetsFunction · 0.85

Calls 2

newTestAdminAtFunction · 0.85
HelperMethod · 0.80

Tested by

no test coverage detected